blob: a65ed314d8f89b71a36f5399d70ff3695ff14cf8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
#
# This is the MIDL compile phase of the build process.
#
# The following is where you put the name of your .idl file without
# the .idl extension:
IDL_NAME = nwwks
IMPORT = imports
#
#
!IF "$(QFE_BUILD)" != "1"
!INCLUDE $(NTMAKEENV)\makefile.plt
!ENDIF
UNICODE=1
SDKINC = \nt\public\sdk\inc
SDKCRTINC = \nt\public\sdk\inc\crt
PRIVINC = ..\..\..\..\inc
INCS = -I$(SDKINC) -I$(SDKCRTINC) -I$(PRIVINC) -I.\inc
TARGETS = client\$(IDL_NAME)_c.c \
server\$(IDL_NAME)_s.c \
inc\$(IDL_NAME).h
EXTRN_DEPENDS = $(SDKINC)\winbase.h \
$(SDKINC)\windef.h \
inc\imports.h \
$(IDL_NAME).acf
NET_C_DEFINES= -DINCL_32= -DNT -DRPC_NO_WINDOWS_H
CPP = -cpp_cmd "$(MIDL_CPP)" -cpp_opt "-nologo -E $(MIDL_FLAGS) $(INCS) $(C_DEFINES) $(NET_C_DEFINES)"
#
# Define Products and Dependencies
#
all: $(TARGETS) $(EXTRN_DEPENDS)
!IF "$(BUILDMSG)" != ""
@ech ; $(BUILDMSG) ;
!ENDIF
clean: delsrc all
delsrc:
erase $(TARGETS)
#
# MIDL COMPILE
#
$(TARGETS) : .\$(IDL_NAME).idl $(EXTRN_DEPENDS)
midl -oldnames -error ref -ms_ext -c_ext $(CPP) .\$(IDL_NAME).idl $(INCS)
IF EXIST $(IDL_NAME)_c.c copy $(IDL_NAME)_c.c .\client & del $(IDL_NAME)_c.c
IF EXIST $(IDL_NAME)_s.c copy $(IDL_NAME)_s.c .\server & del $(IDL_NAME)_s.c
IF EXIST $(IDL_NAME).h copy $(IDL_NAME).h .\inc & del $(IDL_NAME).h
|