mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.1 KiB
47 lines
1.1 KiB
#
|
|
# 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
|
|
|
|
IDL_NAME = afpsvc
|
|
IMPORT = import
|
|
|
|
SDKINC = $(BASEDIR)\public\sdk\inc
|
|
SDKCRTINC = $(BASEDIR)\public\sdk\inc\crt
|
|
INCS = -I$(SDKINC) -I$(SDKCRTINC) -I..\h
|
|
|
|
CPP = -cpp_cmd "$(MIDL_CPP)" -cpp_opt "-E $(MIDL_FLAGS) $(INCS) $(C_DEFINES)"
|
|
|
|
TARGETS = client\$(IDL_NAME)_c.c \
|
|
server\$(IDL_NAME)_s.c \
|
|
.\$(IDL_NAME).h
|
|
|
|
EXTRN_DEPENDS = $(BASEDIR)\public\sdk\inc\macfile.h \
|
|
$(IDL_NAME).acf
|
|
|
|
#
|
|
# Define Products and Dependencies
|
|
#
|
|
|
|
all: $(TARGETS) $(EXTRN_DEPENDS)
|
|
!IF "$(BUILDMSG)" != ""
|
|
@ech ; $(BUILDMSG) ;
|
|
!ENDIF
|
|
|
|
clean: delete_source all
|
|
|
|
delete_source:
|
|
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
|