home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
online
/
source
/
c
/
compilers
/
C_Interp.sit.hqx
/
C_Interp
/
Makefile
< prev
next >
Wrap
Makefile
|
1992-04-29
|
2KB
|
103 lines
COMPFLAGS =
CFLAGS = -g -Aa $(COMPFLAGS)
PFLAGS = $(COMPFLAGS)
FFLAGS = $(COMPFLAGS)
CCFLAGS = $(COMPFLAGS)
CXXFLAGS = $(COMPFLAGS)
DEST = .
# Uncomment this if you want system header files to be expanded
#
# SYSHDRS =
EXTHDRS =
HDRS = CInterp.h \
Compatibility.h \
File.h \
Interp.h
INSTALL = install
LD = cc
LDFLAGS = $(COMPFLAGS)
LIBS =
LINTLIBS =
LINTFLAGS = -u $(CFLAGS)
MAKEFILE = Makefile
OBJS = Compatibility.o \
File.o \
Interp.o \
Script.o \
/usr/lib/end.o \
main.o
PRINT = pr
PRINTFLAGS =
LP = lp
LPFLAGS =
PROGRAM = main
SHELL = /bin/sh
SRCS = Compatibility.c \
File.c \
Interp.c \
Script.c \
main.c
all: $(PROGRAM)
$(PROGRAM): $(OBJS) $(LIBS) $(MAKEFILE)
@echo "Linking $(PROGRAM) ..."
@$(LD) $(LDFLAGS) $(OBJS) $(LIBS) -o $(PROGRAM)
@echo "done"
clean:; @rm -f $(OBJS) core
clobber:; @rm -f $(OBJS) $(PROGRAM) core tags
depend:; @mkmf -f $(MAKEFILE) ROOT=$(ROOT)
echo:; @echo $(HDRS) $(SRCS)
-1:; @ctags -wx $(HDRS) $(SRCS)
install: $(PROGRAM)
@echo Installing $(PROGRAM) in $(DEST)
@-strip $(PROGRAM)
@if [ $(DEST) != . ]; then \
(rm -f $(DEST)/$(PROGRAM); $(INSTALL) -f $(DEST) $(PROGRAM)); fi
lint: $(LINTLIBS) $(SRCS) $(HDRS) $(EXTHDRS)
lint $(LINTFLAGS) $(LINTLIBS) $(SRCS)
print:; @$(PRINT) $(PRINTFLAGS) $(HDRS) $(SRCS) | $(LP) $(LPFLAGS)
tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
update: $(DEST)/$(PROGRAM)
touch:; @touch $(SRCS) $(HDRS)
$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
@$(MAKE) -f $(MAKEFILE) ROOT=$(ROOT) DEST=$(DEST) install
###
Compatibility.o: Compatibility.h
File.o: Compatibility.h File.h Interp.h
Interp.o: Compatibility.h Interp.h
Script.o: Compatibility.h Interp.h File.h CInterp.h
main.o: Compatibility.h File.h