blob: d9488c71e5c4f631968963fa7eedc39c71f505cf (
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
|
#
# 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:
#
!INCLUDE $(NTMAKEENV)\makefile.plt
ELFIDL=elf
CLIENT_FILES=elfclnt\$(ELFIDL)_c.c $(ELFIDL).h
SERVER_FILES=server\$(ELFIDL)_s.c
LOCAL_FILES=$(ELFIDL)_c.c $(ELFIDL)_s.c
INCS= -I$(BASEDIR)\public\sdk\inc -I$(BASEDIR)\public\sdk\inc\crt
ELFMIDLARGS=-oldnames -error allocation -error ref -ms_ext -c_ext \
-cpp_cmd "$(MIDL_CPP)" $(MIDL_FLAGS) $(INCS)
#
# Define Products and Dependencies
#
all: $(CLIENT_FILES) $(SERVER_FILES) del_elf_sources
!IF "$(BUILDMSG)" != ""
@ech ; $(BUILDMSG) ;
!ENDIF
clean: delete_source all
delete_source:
-erase $(CLIENT_FILES) $(SERVER_FILES) $(LOCAL_FILES)
#
# MIDL COMPILE
#
$(CLIENT_FILES): $(ELFIDL).idl
midl -Oi $(ELFMIDLARGS) $(ELFIDL).idl
copy $(ELFIDL)_c.c elfclnt\$(ELFIDL)_c.c
$(SERVER_FILES): $(ELFIDL).idl
midl -client none $(ELFMIDLARGS) $(ELFIDL).idl
copy $(ELFIDL)_s.c server\$(ELFIDL)_s.c
del_elf_sources:
-del $(LOCAL_FILES) 1> NUL 2>NUL
|