home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 September
/
Simtel20_Sept92.cdr
/
msdos
/
c
/
apm.arc
/
MAKEFILE
< prev
next >
Wrap
Text File
|
1988-10-08
|
1KB
|
62 lines
#
# Makefile for building the APM library, "libapm.a"
#
CC = cc
CFLAGS = -O
LIBRARY = libapm.a
OBJS = addsub.o calc.o memory.o misc.o muldiv.o utils.o
SRCS = addsub.c calc.c memory.c misc.c muldiv.c utils.c
all: $(LIBRARY)
$(LIBRARY): $(OBJS)
ar cru tempfile `lorder $(OBJS) | tsort`
mv tempfile $(LIBRARY)
test: test/apmtest
test/apmtest: $(LIBRARY)
cd test; make
clean:
rm -f $(OBJS)
cd test; make clean
# The 'depend' production assumes the use of a program called 'makedepend'.
# Change your 'depend' line accordingly.
depend:
makedepend $(SRCS)
cd test ; make depend
# The 'shar' production assumes the use of a rather specific shar program
# called 'doshar'. Change your 'shar' line accordingly.
shar:
doshar README FUNCTIONS LICENSE Makefile makefile.msc apm.arf \
*.c *.h test/Makefile test/makefile.msc test/apmtest.c
###
# DO NOT DELETE THIS LINE -- makedepend uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
addsub.c:
addsub.o: addsub.c /usr/include/stdio.h apm.h apmlocal.h
calc.c:
calc.o: calc.c /usr/include/stdio.h /usr/include/varargs.h apm.h apmlocal.h
memory.c:
memory.o: memory.c /usr/include/stdio.h apm.h apmlocal.h
misc.c:
misc.o: misc.c /usr/include/stdio.h apm.h apmlocal.h
muldiv.c:
muldiv.o: muldiv.c /usr/include/stdio.h apm.h apmlocal.h
utils.c:
utils.o: utils.c /usr/include/stdio.h /usr/include/varargs.h apm.h apmlocal.h
# IF YOU PUT ANYTHING HERE IT WILL GO AWAY