home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
unix
/
volume24
/
chemtab
/
part02
/
Makefile
< prev
next >
Wrap
Makefile
|
1991-03-12
|
2KB
|
86 lines
CC = cc
CFLAGS = -g -DReGIS
# Define ReGIS if you want to program to prompt the user to answer y/n
# to the question of if they have a ReGIS compatible terminal
DEST = chemtab
EXTHDRS = /usr/include/curses.h \
/usr/include/math.h \
/usr/include/sgtty.h \
/usr/include/signal.h \
/usr/include/stdio.h \
/usr/include/sys/ioctl.h \
/usr/include/sys/ttychars.h \
/usr/include/sys/ttydev.h \
/usr/include/sys/ttyio.h \
/usr/include/time.h
HDRS = element.h \
graph.h \
tune.h \
undefs.h \
variables.h \
windows.h
LDFLAGS = $(CFLAGS)
LIBS = -lcurses -ltermcap graphlib.a
LINKER = cc
MAKEFILE = Makefile
OBJS = cleanup.o \
dogph.o \
doregisgph.o \
element.o \
element2.o \
esort.o \
looke.o \
main.o \
ptabl.o \
schar.o \
scrmisc.o \
vdata.o
PRINT = lpr
PROGRAM = chemtab
SRCS = cleanup.c \
dogph.c \
doregisgph.c \
element.c \
element2.c \
esort.c \
graphlib.c \
looke.c \
main.c \
ptabl.c \
schar.c \
scrmisc.c \
vdata.c
all: grlib $(PROGRAM)
grlib: graphlib.o
ar cr graphlib.a graphlib.o
ranlib graphlib.a
$(PROGRAM): $(OBJS) graphlib.a
@echo -n "Loading $(PROGRAM) ... "
@$(LINKER) $(LDFLAGS) $(OBJS) -o $(PROGRAM) $(LIBS)
@echo "done"
clean:; @rm -f $(OBJS)
depend:; @mkmf -f $(MAKEFILE) PROGRAM=$(PROGRAM) DEST=$(DEST)
index:; @ctags -wx $(HDRS) $(SRCS)
install: $(PROGRAM)
@echo Installing $(PROGRAM) in $(DEST)
@install -m 4755 $(PROGRAM) $(DEST)
print:; @$(PRINT) $(HDRS) $(SRCS)
program: $(PROGRAM)
tags: $(HDRS) $(SRCS); @ctags $(HDRS) $(SRCS)
update: $(DEST)/$(PROGRAM)
$(DEST)/$(PROGRAM): $(SRCS) $(LIBS) $(HDRS) $(EXTHDRS)
@make -f $(MAKEFILE) DEST=$(DEST)
###