home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frozen Fish 2: PC
/
frozenfish_august_1995.bin
/
bbs
/
d02xx
/
d0232.lha
/
Dbug
/
lattice.mk
< prev
next >
Wrap
Makefile
|
1989-08-02
|
1KB
|
62 lines
#
# FILE
#
# lattice.mk Makefile for dbug package
#
# SCCS ID
#
# @(#)lattice.mk 1.1 7/25/89
#
# DESCRIPTION
#
# Makefile for the dbug package (AmigaDOS, Lattice C compiler)
#
# Define NO_VARARGS if you have no <varargs.h> to include.
VARARGS = -dNO_VARARGS=1
CFLAGS = $(VARARGS) -damiga=1
CC = lc
# The default thing to do is remake the local runtime support
# library.
all : dbug.lib factorial analyze
# Note that we cannot simply rename dbug.o to dbug.lib since
# the rename will fail if dbug.lib already exists. And we
# can't just arbitrarily delete it, since that will fail if
# it doesn't exist. Sigh.
dbug.lib : dbug.c dbug.h
$(CC) $(CFLAGS) dbug.c
copy dbug.o dbug.lib
delete dbug.o
#
# Make the test/example program "factorial".
#
# Note that the objects depend on the LOCAL dbug.h file and
# the compilations are set up to find dbug.h in the current
# directory even though the sources have "#include <dbug.h>".
# This allows the examples to look like the code a user would
# write but still be used as test cases for new versions
# of dbug.
factorial : main.o factorial.o dbug.lib
blink with factor.lnk
main.o : main.c dbug.h
$(CC) $(CFLAGS) main.c
factorial.o : factorial.c dbug.h
$(CC) $(CFLAGS) factorial.c
# Make the analyze program for runtime profiling support.
analyze : analyze.o dbug.lib
blink with analyze.lnk
analyze.o : analyze.c useful.h dbug.h
$(CC) $(CFLAGS) analyze.c