home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Windoware
/
WINDOWARE_1_6.iso
/
bugfix
/
patchedt
/
patchedt.mak
< prev
next >
Wrap
Makefile
|
1991-09-16
|
2KB
|
100 lines
PROJ = PATCHEDT
PROJFILE = PATCHEDT.MAK
DEBUG = 0
LINKER = link
ILINK = ilink
LRF = echo > NUL
BIND = bind
RC = rc
IMPLIB = implib
LFLAGS_G = /BATCH /al:16
LFLAGS_D = /CO /M /NOF /NOP
LFLAGS_R = /M /NOF /NOP /BATCH /AL:16
MAPFILE_D = $(PROJ).map
MAPFILE_R = $(PROJ).map
CC = cl
CFLAGS_G = /Alnw /W4 /Gw /DNOKANJI /Zp /BATCH
CFLAGS_D = /Od /FPc /Zi /Gi$(PROJ).mdt /Gs
CFLAGS_R = /Os /FPc /Gs
LLIBS_R = /NOD:MLIBCE MDLLCEW
LLIBS_D = /NOD:MLIBCE MDLLCEW
LLIBS_G = LIBW.LIB
ASM = masm
AFLAGS_G = /Mx /T
AFLAGS_D = /Zi
DEF_FILE = PATCHEDT.DEF
OBJS_EXT = c:\sdk\lib\libentry.obj
OBJS = $(OBJS_EXT) PATCHEDT.obj PATCH.obj
RESS = PATCHEDT.res
all: $(PROJ).dll
.SUFFIXES: .rc .res .c .obj
PATCHEDT.obj : PATCHEDT.C
PATCHEDT.res : PATCHEDT.RC
PATCH.obj : PATCH.C
$(PROJ).dll : $(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) $@
$(IMPLIB) $*.lib $@
.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).dll
debug: $(PROJ).dll