home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Direkt: Spezial 1
/
CDD_SPIELE_.ISO
/
wingames
/
life
/
life.mak
< prev
next >
Wrap
Makefile
|
1994-03-15
|
2KB
|
119 lines
PROJ = LIFE
PROJFILE = LIFE.MAK
DEBUG = 0
PWBRMAKE = pwbrmake
NMAKEBSC1 = set
NMAKEBSC2 = nmake
LINKER = link
ILINK = ilink
LRF = echo > NUL
BIND = bind
RC = rc
IMPLIB = implib
LFLAGS_G = /ST:4096 /BATCH /ALIGN:16
LFLAGS_D = /CO /NOF /NOP
LFLAGS_R = /NOF /PACKC /PACKD /BATCH
MAPFILE_D = NUL
MAPFILE_R = NUL
CC = cl
CFLAGS_G = /W3 /G2 /Gw /Zp /BATCH
CFLAGS_D = /Od /Zi /Gs
CFLAGS_R = /Ot /Ol /Og /Oe /Oa /FPc /Gs /Fc
LLIBS_R = /NOD:SLIBCE SLIBCEW
LLIBS_D = /NOD:SLIBCE SLIBCEW
LLIBS_G = LIBW.LIB
ASM = masm
AFLAGS_G = /Mx /T
AFLAGS_D = /Zi
DEF_FILE = LIFE.DEF
OBJS = LIFE.obj
RESS = LIFE.res
SBRS = LIFE.sbr
all: $(PROJ).exe
.SUFFIXES:
.SUFFIXES: .sbr .res .obj .c .rc
LIFE.obj : LIFE.C c:\windev\include\windows.h c:\windev\include\stdio.h\
c:\windev\include\stdlib.h c:\windev\include\string.h\
c:\windev\include\time.h life.h
LIFE.sbr : LIFE.C c:\windev\include\windows.h c:\windev\include\stdio.h\
c:\windev\include\stdlib.h c:\windev\include\string.h\
c:\windev\include\time.h life.h
LIFE.res : LIFE.RC c:\windev\include\windows.h life.h
$(PROJ).bsc : $(SBRS)
$(PWBRMAKE) @<<
$(BRFLAGS) $(SBRS)
<<
$(PROJ).exe : $(DEF_FILE) $(OBJS) $(RESS)
!IF $(DEBUG)
$(LRF) @<<$(PROJ).lrf
$(RT_OBJS: = +^
) $(OBJS: = +^
)
$@
$(MAPFILE_D)
$(LLIBS_G: = +^
) +
$(LLIBS_D: = +^
) +
$(LIBS: = +^
)
$(DEF_FILE) $(LFLAGS_G) $(LFLAGS_D);
<<
!ELSE
$(LRF) @<<$(PROJ).lrf
$(RT_OBJS: = +^
) $(OBJS: = +^
)
$@
$(MAPFILE_R)
$(LLIBS_G: = +^
) +
$(LLIBS_R: = +^
) +
$(LIBS: = +^
)
$(DEF_FILE) $(LFLAGS_G) $(LFLAGS_R);
<<
!ENDIF
!IF $(DEBUG)
$(LINKER) @$(PROJ).lrf
!ELSE
$(LINKER) @$(PROJ).lrf
!ENDIF
$(RC) $(RESS) $@
.c.sbr :
!IF $(DEBUG)
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_D) /FR$@ $<
!ELSE
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_R) /FR$@ $<
!ENDIF
.rc.res :
$(RC) /r $<
.c.obj :
!IF $(DEBUG)
$(CC) /c $(CFLAGS_G) $(CFLAGS_D) /Fo$@ $<
!ELSE
$(CC) /c $(CFLAGS_G) $(CFLAGS_R) /Fo$@ $<
!ENDIF
run: $(PROJ).exe
WIN $(PROJ).exe $(RUNFLAGS)
debug: $(PROJ).exe
WIN CVW $(CVFLAGS) $(PROJ).exe $(RUNFLAGS)