home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Archive
/
OS2_Archive_CD-ROM_Walnut_Creek_May_1992.iso
/
novell
/
progrmng
/
indent.zoo
/
indent.mak
< prev
next >
Wrap
Makefile
|
1990-04-26
|
6KB
|
208 lines
PROJ = indent
PROJFILE = indent.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
LFLAGS_D = /CO /INC /FAR /PACKC /PACKD /PMTYPE:VIO
LFLAGS_R = /EXE /FAR /PACKC /PACKD /PMTYPE:VIO
MAPFILE_D = INDENT
MAPFILE_R = NUL
CC = cl
CFLAGS_G = /W4 /DCC_MSC /BATCH /FR$*.sbr
CFLAGS_D = /qc /GiREL\$(PROJ).mdt /Zr /Zi /Od
CFLAGS_R = /Ot /Ol /Og /Oe /Oi /Gs
LLIBS_R = /NOD:SLIBCE SLIBCEP
LLIBS_D = /NOD:SLIBCE SLIBCEP
ASM = masm
AFLAGS_G = /Mx /T
AFLAGS_D = /Zi
BRFLAGS = /o REL\$(PROJ).bsc /Iu
BROWSE = 1
OBJS = REL\ARGS.obj REL\COMMENT.obj REL\INDENT.obj REL\LEXI.obj REL\PARSE.obj\
REL\IO.obj
SBRS = REL\ARGS.sbr REL\COMMENT.sbr REL\INDENT.sbr REL\LEXI.sbr REL\PARSE.sbr\
REL\IO.sbr
all: REL\$(PROJ).exe
.SUFFIXES: .c .sbr .obj
REL\ARGS.obj : ARGS.C globs.h msdos.h C:\CMPLRS\C600\INCLUDE\malloc.h\
C:\CMPLRS\C600\INCLUDE\sys\types.h C:\CMPLRS\C600\INCLUDE\ctype.h\
C:\CMPLRS\C600\INCLUDE\stdio.h typedefs.h config.h
!IF $(DEBUG)
$(CC) /c $(CFLAGS_G) $(CFLAGS_D) /FoREL\ARGS.obj ARGS.C
!ELSE
$(CC) /c $(CFLAGS_G) $(CFLAGS_R) /FoREL\ARGS.obj ARGS.C
!ENDIF
REL\ARGS.sbr : ARGS.C globs.h msdos.h C:\CMPLRS\C600\INCLUDE\malloc.h\
C:\CMPLRS\C600\INCLUDE\sys\types.h C:\CMPLRS\C600\INCLUDE\ctype.h\
C:\CMPLRS\C600\INCLUDE\stdio.h typedefs.h config.h
!IF $(DEBUG)
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_D) /FRREL\ARGS.sbr ARGS.C
!ELSE
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_R) /FRREL\ARGS.sbr ARGS.C
!ENDIF
REL\COMMENT.obj : COMMENT.C config.h C:\CMPLRS\C600\INCLUDE\malloc.h globs.h\
C:\CMPLRS\C600\INCLUDE\stdio.h typedefs.h
!IF $(DEBUG)
$(CC) /c $(CFLAGS_G) $(CFLAGS_D) /FoREL\COMMENT.obj COMMENT.C
!ELSE
$(CC) /c $(CFLAGS_G) $(CFLAGS_R) /FoREL\COMMENT.obj COMMENT.C
!ENDIF
REL\COMMENT.sbr : COMMENT.C config.h C:\CMPLRS\C600\INCLUDE\malloc.h globs.h\
C:\CMPLRS\C600\INCLUDE\stdio.h typedefs.h
!IF $(DEBUG)
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_D) /FRREL\COMMENT.sbr COMMENT.C
!ELSE
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_R) /FRREL\COMMENT.sbr COMMENT.C
!ENDIF
REL\INDENT.obj : INDENT.C config.h globs.h codes.h msdos.h\
C:\CMPLRS\C600\INCLUDE\malloc.h C:\CMPLRS\C600\INCLUDE\ctype.h\
C:\CMPLRS\C600\INCLUDE\memory.h C:\CMPLRS\C600\INCLUDE\string.h\
C:\CMPLRS\C600\INCLUDE\stdio.h typedefs.h
!IF $(DEBUG)
$(CC) /c $(CFLAGS_G) $(CFLAGS_D) /FoREL\INDENT.obj INDENT.C
!ELSE
$(CC) /c $(CFLAGS_G) $(CFLAGS_R) /FoREL\INDENT.obj INDENT.C
!ENDIF
REL\INDENT.sbr : INDENT.C config.h globs.h codes.h msdos.h\
C:\CMPLRS\C600\INCLUDE\malloc.h C:\CMPLRS\C600\INCLUDE\ctype.h\
C:\CMPLRS\C600\INCLUDE\memory.h C:\CMPLRS\C600\INCLUDE\string.h\
C:\CMPLRS\C600\INCLUDE\stdio.h typedefs.h
!IF $(DEBUG)
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_D) /FRREL\INDENT.sbr INDENT.C
!ELSE
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_R) /FRREL\INDENT.sbr INDENT.C
!ENDIF
REL\LEXI.obj : LEXI.C globs.h codes.h C:\CMPLRS\C600\INCLUDE\ctype.h\
C:\CMPLRS\C600\INCLUDE\stdio.h typedefs.h config.h
!IF $(DEBUG)
$(CC) /c $(CFLAGS_G) $(CFLAGS_D) /FoREL\LEXI.obj LEXI.C
!ELSE
$(CC) /c $(CFLAGS_G) $(CFLAGS_R) /FoREL\LEXI.obj LEXI.C
!ENDIF
REL\LEXI.sbr : LEXI.C globs.h codes.h C:\CMPLRS\C600\INCLUDE\ctype.h\
C:\CMPLRS\C600\INCLUDE\stdio.h typedefs.h config.h
!IF $(DEBUG)
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_D) /FRREL\LEXI.sbr LEXI.C
!ELSE
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_R) /FRREL\LEXI.sbr LEXI.C
!ENDIF
REL\PARSE.obj : PARSE.C globs.h codes.h C:\CMPLRS\C600\INCLUDE\stdio.h\
typedefs.h config.h
!IF $(DEBUG)
$(CC) /c $(CFLAGS_G) $(CFLAGS_D) /FoREL\PARSE.obj PARSE.C
!ELSE
$(CC) /c $(CFLAGS_G) $(CFLAGS_R) /FoREL\PARSE.obj PARSE.C
!ENDIF
REL\PARSE.sbr : PARSE.C globs.h codes.h C:\CMPLRS\C600\INCLUDE\stdio.h\
typedefs.h config.h
!IF $(DEBUG)
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_D) /FRREL\PARSE.sbr PARSE.C
!ELSE
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_R) /FRREL\PARSE.sbr PARSE.C
!ENDIF
REL\IO.obj : IO.C globs.h C:\CMPLRS\C600\INCLUDE\ctype.h\
C:\CMPLRS\C600\INCLUDE\memory.h C:\CMPLRS\C600\INCLUDE\stdio.h\
typedefs.h config.h
!IF $(DEBUG)
$(CC) /c $(CFLAGS_G) $(CFLAGS_D) /FoREL\IO.obj IO.C
!ELSE
$(CC) /c $(CFLAGS_G) $(CFLAGS_R) /FoREL\IO.obj IO.C
!ENDIF
REL\IO.sbr : IO.C globs.h C:\CMPLRS\C600\INCLUDE\ctype.h\
C:\CMPLRS\C600\INCLUDE\memory.h C:\CMPLRS\C600\INCLUDE\stdio.h\
typedefs.h config.h
!IF $(DEBUG)
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_D) /FRREL\IO.sbr IO.C
!ELSE
$(CC) /Zs $(CFLAGS_G) $(CFLAGS_R) /FRREL\IO.sbr IO.C
!ENDIF
REL\$(PROJ).bsc : $(SBRS)
$(PWBRMAKE) @<<
$(BRFLAGS) $(SBRS)
<<
REL\$(PROJ).exe : $(OBJS)
!IF $(DEBUG)
$(LRF) @<<REL\$(PROJ).lrf
$(RT_OBJS: = +^
) $(OBJS: = +^
)
$@
$(MAPFILE_D)
$(LLIBS_G: = +^
) +
$(LLIBS_D: = +^
) +
$(LIBS: = +^
)
$(DEF_FILE) $(LFLAGS_G) $(LFLAGS_D);
<<
!ELSE
$(LRF) @<<REL\$(PROJ).lrf
$(RT_OBJS: = +^
) $(OBJS: = +^
)
$@
$(MAPFILE_R)
$(LLIBS_G: = +^
) +
$(LLIBS_R: = +^
) +
$(LIBS: = +^
)
$(DEF_FILE) $(LFLAGS_G) $(LFLAGS_R);
<<
!ENDIF
$(LINKER) @REL\$(PROJ).lrf
$(BIND) $@ apilmr.obj api.lib -o $@
$(NMAKEBSC1) MAKEFLAGS=
$(NMAKEBSC2) $(NMFLAGS) -f $(PROJFILE) REL\$(PROJ).bsc
.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: REL\$(PROJ).exe
REL\$(PROJ).exe $(RUNFLAGS)
debug: REL\$(PROJ).exe
CVP $(CVFLAGS) REL\$(PROJ).exe $(RUNFLAGS)