home *** CD-ROM | disk | FTP | other *** search
- ###########################################################################
- #
- # MAKE-MY-DAY file for WINAWE32
- #
- # Author : Cheng Kok Hoong
- #
- ###########################################################################
-
- ##### Module Macros ####
- NAME = winawe32
- SRCS = $(NAME).c mci.c
-
- ##### DEBUG Macro Defined #####
- DEBUG = 0
-
- ##### Resource Macro #####
- RCFILES = $(NAME)
-
- ##### Library Macros #####
- LIBS = libw slibcew commdlg mmsystem
- MOD = -AS
-
- ##### Build Option Macros #####
- !if $(DEBUG)
- DDEF = -DDEBUG
- CLOPT = -Zid -Od
- MOPT = -Zi
- LOPT = /NOLOGO /NOD /STACK:5120 /ALIGN:16 /ONERROR:NOEXE /CO
- !else
- DDEF =
- CLOPT = -Ox
- LOPT = /NOLOGO /NOD /STACK:5120 /ALIGN:16 /ONERROR:NOEXE
- !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)
- 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) $(RCFILES).def $(RCFILES).res
- $(LINK) @<<
- $(SRCS:.c=.obj) $(OBJS),
- $(NAME).exe,
- ,
- $(LIBS),
- $(RCFILES).def
- <<
- $(RC) -K $(RCFILES).res $(NAME).EXE
-
- ##### Dependents #####
- $(SRCS:.c=.obj): $(INCLS)
- $(NAME).res: $(RCFILES).def
-