home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
cproto.zip
/
cproto46
/
msdos
/
borland.mak
next >
Wrap
Makefile
|
1998-01-19
|
2KB
|
64 lines
# $Id: borland.mak,v 4.1 1998/01/20 00:19:17 cthuang Exp $
#
# Borland C++ makefile for C prototype generator
# Define MSDOS for MS-DOS compatibility.
# Define TURBO_CPP to pipe the input through the Turbo C preprocessor.
DEFINES = -DMSDOS -DTURBO_CPP
LEX = lex
YACC = yacc
CC = bcc
CFLAGS = -mc $(DEFINES) -w-pin -w-pro
LIBS = \bc\lib\wildargs.obj
DIST1 = README CHANGES cproto.man
DIST2 = cproto.1 borland.mak micrsoft.mak makefile.in lex.l grammar.y
DIST3 = system.h cproto.h patchlev.h semantic.h symbol.h
DIST4 = cproto.c popen.c lintlibs.c semantic.c strkey.c strstr.c symbol.c
OBJECTS = cproto.obj lintlibs.obj getopt.obj popen.obj semantic.obj strkey.obj strstr.obj symbol.obj y_tab.obj
all: cproto.exe
cproto.exe: $(OBJECTS)
$(CC) $(CFLAGS) -e$*.exe $(OBJECTS) $(LIBS)
y_tab.obj: y_tab.c lex_yy.c system.h cproto.h symbol.h semantic.h
$(CC) $(CFLAGS) -c $*.c
y_tab.c: grammar.y
$(YACC) grammar.y
lex_yy.c: lex.l
$(LEX) lex.l
cproto.man: cproto.1
cawf -man $*.1 | bsfilt - >$*.man
clean:
erase *.obj
erase *.bak
erase *.log
erase lex_yy.c
erase y_tab.c
erase cproto.exe
ci:
ci -u3 $(DIST2) $(DIST3)
ci -u3 $(DIST4)
shar:
shar $(DIST1) $(DIST2) >cproto.sh1
shar $(DIST3) $(DIST4) >cproto.sh2
# DO NOT DELETE THIS LINE -- make depend depends on it.
cproto.obj: system.h cproto.h symbol.h
lintlibs.obj: system.h cproto.h symbol.h semantic.h
popen.obj: system.h cproto.h
semantic.obj: system.h cproto.h symbol.h semantic.h
strkey.obj: cproto.h system.h
strstr.obj: system.h
symbol.obj: system.h cproto.h symbol.h