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.
105 lines
1.9 KiB
105 lines
1.9 KiB
## makefile
|
|
## Makefile for HOMEADM.EXE
|
|
##
|
|
## Author: Joev Dubach
|
|
|
|
##### Module Macros ####
|
|
NAME = homeadm
|
|
SRCS = $(NAME).c home_c.c home_x.c
|
|
OBJS =
|
|
|
|
##### C7 Macro #####
|
|
C7 = 1
|
|
|
|
##### Library Macros #####
|
|
LIBS = libw llibcew rpcw rpcndrw
|
|
MOD = -AL
|
|
|
|
##### Include Macro #####
|
|
INCLS = $(NAME).h home.h
|
|
|
|
##### Resource Macro #####
|
|
RCFILES = $(NAME).rc
|
|
|
|
##### DEBUG Macro Defined #####
|
|
DEBUG = 1
|
|
|
|
##### Build Option Macros #####
|
|
!if $(DEBUG)
|
|
DDEF = -DDEBUG
|
|
CLOPT = -Zid -Od -f
|
|
MOPT = -Zi
|
|
LOPT = /CO /LI /MAP
|
|
!else
|
|
DDEF =
|
|
CLOPT = -Os
|
|
LOPT =
|
|
!endif
|
|
|
|
##### General Macros #####
|
|
DEF =
|
|
|
|
##### Tool Macros #####
|
|
ASM = masm -Mx $(MOPT) $(DDEF) $(DEF)
|
|
CC = cl -nologo -c -G2sw -Zp -W3 $(MOD) $(CLOPT) $(DDEF) $(DEF)
|
|
LINK = link /NOD /NOE $(LOPT)
|
|
#MIDL = midl -no_cpp -char unsigned -client all -server none
|
|
MIDL = midl -app_config -savepp -cpp_cmd cl -cpp_opt "-E" -char unsigned -client all -server none
|
|
RC = rc $(DDEF) $(DEF)
|
|
HC = hc
|
|
|
|
##### Inference Rules #####
|
|
.c.obj:
|
|
$(CC) $*.c
|
|
|
|
.asm.obj:
|
|
$(ASM) $*.asm
|
|
|
|
.rc.res:
|
|
$(RC) -r $*.rc
|
|
|
|
##### Main (default) Target #####
|
|
goal: $(NAME).exe
|
|
|
|
##### Dependents For Goal and Command Line #####
|
|
$(NAME).exe: $(SRCS:.c=.obj) $(NAME).def $(NAME).res
|
|
$(LINK) @<<
|
|
$(SRCS:.c=.obj) $(OBJS),
|
|
$(NAME).exe,
|
|
$(NAME).map,
|
|
$(LIBS),
|
|
$(NAME).def
|
|
<<
|
|
$(RC) -T $(NAME).res
|
|
!if $(DEBUG)
|
|
!if !$(C7)
|
|
cvpack -p $(NAME).exe
|
|
!endif
|
|
# mapsym $(NAME).map
|
|
!endif
|
|
|
|
##### Dependents #####
|
|
$(SRCS:.c=.obj).obj: $(INCLS)
|
|
$(NAME).res: $(RCFILES)
|
|
|
|
# homeadm stub
|
|
home_c.obj : home_c.c home.h
|
|
|
|
# homeadm auxiliary file
|
|
home_x.obj : home_x.c home.h
|
|
|
|
# Stubs, auxiliary and header file from the IDL file
|
|
home.h home_c.c home_x.c: ..\home.idl ..\home.acf
|
|
$(MIDL) -acf ..\home.acf ..\home.idl
|
|
|
|
##### Clean Directory #####
|
|
clean:
|
|
-del *.obj
|
|
-del *.res
|
|
-del *.exe
|
|
-del *.map
|
|
-del *.sym
|
|
-del home.h
|
|
-del home_c.c
|
|
-del home_x.c
|
|
|