home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
PRF100.LZH
/
PRFSRC.LZH
/
PRF.MAK
< prev
next >
Wrap
Makefile
|
1991-01-29
|
4KB
|
147 lines
PROJ = prf
PROJFILE = prf.mak
DEBUG = 0
PWBRMAKE = pwbrmake
NMAKEBSC1 = set
NMAKEBSC2 = nmake
LINKER = link
ILINK = ilink
LRF = echo > NUL
BIND = bind
RC = rc
IMPLIB = implib
LFLAGS_G = /NOI /BATCH /a:16
LFLAGS_D = /CO /INC /FAR /PACKC /PACKD /PMTYPE:VIO
LFLAGS_R = /EXE /FAR /PACKC /PACKD /PMTYPE:VIO
MAPFILE_D = NUL
MAPFILE_R = NUL
CC = cl
CFLAGS_G = /AC /W4 /G2 /Gr /Zp /BATCH
CFLAGS_D = /qc /Gi$(PROJ).mdt /Zr /Zi /Od
CFLAGS_R = /Ot /Gs /Oxaz
LLIBS_R = /NOD:CLIBCE CLIBCEP
LLIBS_D = /NOD:CLIBCE CLIBCEP
ASM = masm
AFLAGS_G = /Mx /T
AFLAGS_D = /Zi
OBJS = prf.obj writeprf.obj readprf.obj
SBRS = prf.sbr writeprf.sbr readprf.sbr
all: $(PROJ).exe
.SUFFIXES: .c .sbr .obj
prf.obj : prf.c ..\inc\os2.h ..\inc\stdio.h ..\inc\string.h ..\inc\stdlib.h\
prf.h ..\inc\os2def.h ..\inc\bse.h ..\inc\pm.h ..\inc\bsedos.h\
..\inc\bsesub.h ..\inc\bseerr.h ..\inc\bsedev.h ..\inc\pmwin.h\
..\inc\pmgpi.h ..\inc\pmdev.h ..\inc\pmavio.h ..\inc\pmpic.h\
..\inc\pmord.h ..\inc\pmbitmap.h ..\inc\pmfont.h ..\inc\pmtypes.h\
..\inc\pmmle.h ..\inc\pmshl.h ..\inc\pmerr.h ..\inc\pmhelp.h
prf.sbr : prf.c ..\inc\os2.h ..\inc\stdio.h ..\inc\string.h ..\inc\stdlib.h\
prf.h ..\inc\os2def.h ..\inc\bse.h ..\inc\pm.h ..\inc\bsedos.h\
..\inc\bsesub.h ..\inc\bseerr.h ..\inc\bsedev.h ..\inc\pmwin.h\
..\inc\pmgpi.h ..\inc\pmdev.h ..\inc\pmavio.h ..\inc\pmpic.h\
..\inc\pmord.h ..\inc\pmbitmap.h ..\inc\pmfont.h ..\inc\pmtypes.h\
..\inc\pmmle.h ..\inc\pmshl.h ..\inc\pmerr.h ..\inc\pmhelp.h
writeprf.obj : writeprf.c ..\inc\os2.h ..\inc\stdio.h ..\inc\stdlib.h\
..\inc\string.h prf.h ..\inc\os2def.h ..\inc\bse.h ..\inc\pm.h\
..\inc\bsedos.h ..\inc\bsesub.h ..\inc\bseerr.h ..\inc\bsedev.h\
..\inc\pmwin.h ..\inc\pmgpi.h ..\inc\pmdev.h ..\inc\pmavio.h\
..\inc\pmpic.h ..\inc\pmord.h ..\inc\pmbitmap.h ..\inc\pmfont.h\
..\inc\pmtypes.h ..\inc\pmmle.h ..\inc\pmshl.h ..\inc\pmerr.h\
..\inc\pmhelp.h
writeprf.sbr : writeprf.c ..\inc\os2.h ..\inc\stdio.h ..\inc\stdlib.h\
..\inc\string.h prf.h ..\inc\os2def.h ..\inc\bse.h ..\inc\pm.h\
..\inc\bsedos.h ..\inc\bsesub.h ..\inc\bseerr.h ..\inc\bsedev.h\
..\inc\pmwin.h ..\inc\pmgpi.h ..\inc\pmdev.h ..\inc\pmavio.h\
..\inc\pmpic.h ..\inc\pmord.h ..\inc\pmbitmap.h ..\inc\pmfont.h\
..\inc\pmtypes.h ..\inc\pmmle.h ..\inc\pmshl.h ..\inc\pmerr.h\
..\inc\pmhelp.h
readprf.obj : readprf.c ..\inc\os2.h ..\inc\stdio.h ..\inc\stdlib.h\
..\inc\string.h prf.h ..\inc\os2def.h ..\inc\bse.h ..\inc\pm.h\
..\inc\bsedos.h ..\inc\bsesub.h ..\inc\bseerr.h ..\inc\bsedev.h\
..\inc\pmwin.h ..\inc\pmgpi.h ..\inc\pmdev.h ..\inc\pmavio.h\
..\inc\pmpic.h ..\inc\pmord.h ..\inc\pmbitmap.h ..\inc\pmfont.h\
..\inc\pmtypes.h ..\inc\pmmle.h ..\inc\pmshl.h ..\inc\pmerr.h\
..\inc\pmhelp.h
readprf.sbr : readprf.c ..\inc\os2.h ..\inc\stdio.h ..\inc\stdlib.h\
..\inc\string.h prf.h ..\inc\os2def.h ..\inc\bse.h ..\inc\pm.h\
..\inc\bsedos.h ..\inc\bsesub.h ..\inc\bseerr.h ..\inc\bsedev.h\
..\inc\pmwin.h ..\inc\pmgpi.h ..\inc\pmdev.h ..\inc\pmavio.h\
..\inc\pmpic.h ..\inc\pmord.h ..\inc\pmbitmap.h ..\inc\pmfont.h\
..\inc\pmtypes.h ..\inc\pmmle.h ..\inc\pmshl.h ..\inc\pmerr.h\
..\inc\pmhelp.h
$(PROJ).bsc : $(SBRS)
$(PWBRMAKE) @<<
$(BRFLAGS) $(SBRS)
<<
$(PROJ).exe : $(OBJS)
!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)
$(ILINK) -a -e "$(LINKER) @$(PROJ).lrf" $@
!ELSE
$(LINKER) @$(PROJ).lrf
!ENDIF
.c.sbr :
!IF $(DEBUG)
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_D) /FR$@ $<
!ELSE
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_R) /FR$@ $<
!ENDIF
.c.obj :
!IF $(DEBUG)
$(CC) /c $(CFLAGS_G) $(CFLAGS_D) /Fo$@ $<
!ELSE
$(CC) /c $(CFLAGS_G) $(CFLAGS_R) /Fo$@ $<
!ENDIF
run: $(PROJ).exe
$(PROJ).exe $(RUNFLAGS)
debug: $(PROJ).exe
CVP $(CVFLAGS) $(PROJ).exe $(RUNFLAGS)