home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
tool
/
various
/
iniwiz
/
makefile
< prev
next >
Wrap
Makefile
|
1994-04-12
|
3KB
|
92 lines
#----------------------------------------------------------------------------
# Custom Control makefile
#----------------------------------------------------------------------------
.SUFFIXES: .c .def .VBX .h .lnk .map .obj .rc .res .sym
DEBUG = 1
PRODUCT = INIWIZ
#C6 =
Default: $(PRODUCT).VBX
#----------------------------------------------------------------------------
# Tools required
#----------------------------------------------------------------------------
CC = cl
CVPACK = cvpack
LINK = link
MAPSYM = mapsym
RC = rc
SZSCRN = echo >con
!ifdef C6
OBJS = ..\libentry.obj
CFLAGS2 = /Gw -Asnw
!else
CFLAGS2 = /GD -AS
RCFLAGS2 = -30
!endif
#----------------------------------------------------------------------------
# Flags
#----------------------------------------------------------------------------
!IF $(DEBUG)
CFLAGS = /c /W4 /G2cs /Zip /BATCH /Od
LFLAGS = /NOD /NOE /CO
!ELSE
CFLAGS = /c /W4 /G2cs /Zp /BATCH /Osge
LFLAGS = /NOD /NOE
!ENDIF
#----------------------------------------------------------------------------
# DEFAULT BUILD RULES
#----------------------------------------------------------------------------
.c.obj:
$(SZSCRN) Compiling $(<F)
$(CC) $(CFLAGS) $(CFLAGS2) $<
#----------------------------------------------------------------------------
# Dependencies
#----------------------------------------------------------------------------
$(PRODUCT).obj: $(PRODUCT).c $(PRODUCT).h inievent.h iniprop.h inires.h
$(PRODUCT).VBX: $(PRODUCT).obj $(PRODUCT).lnk $(PRODUCT).res $(PRODUCT).def
$(SZSCRN) Linking $(PRODUCT).VBX...
$(LINK) @$(PRODUCT).lnk
!ifdef C6
$(SZSCRN) CVPACKing $(PRODUCT).VBX...
$(CVPACK) $(PRODUCT).VBX
!endif
$(SZSCRN) RCing $(PRODUCT).VBX...
$(RC) $(RCFLAGS2) $(PRODUCT).res $(PRODUCT).VBX
$(SZSCRN) Done Linking $(PRODUCT).VBX
$(PRODUCT).lnk: makefile
$(SZSCRN) Making <<$(PRODUCT).lnk
$(OBJS) $(PRODUCT).obj
$(PRODUCT).VBX $(LFLAGS)
$(PRODUCT).map
vbapi.lib libw.lib sdllcew.lib
$(PRODUCT).def
<<KEEP
$(PRODUCT).res: $(PRODUCT).rc $(PRODUCT).h \
$(PRODUCT)cd.bmp \
$(PRODUCT)cu.bmp \
$(PRODUCT)mu.bmp \
$(PRODUCT)eu.bmp
$(SZSCRN) Resource compiling $(PRODUCT).RC
$(RC) -R $(RCINCS) $(PRODUCT).rc
cln:
-del $(PRODUCT).obj
-del $(PRODUCT).res
-del $(PRODUCT).lnk
-del $(PRODUCT).map
-del $(PRODUCT).bak