1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
#
# FILE: Makefile
# BY: Christopher Lee Fraley
# and Roger B. Dannenberg.
# DESC: This file builds various utilities for Nyquist
#
CC = cc $(CFLAGS)
# the unix path gets us switches.h:
# the cmt path gets us swlogic.h:
CFLAGS = -g -I../sys -I../cmt
# Directory info:
BINPATH = .
# Intgen stuff:
intgen: cmdline.o intgen.o
$(CC) cmdline.o intgen.o -o $(BINPATH)/intgen
cmdline.o: cext.h cmdline.h
intgen.o: cext.h cmdline.h
#sampleprint - dumb but useful
sampleprint: sampleprint.o
$(CC) sampleprint.o -o $(BINPATH)/sampleprint
sampleprint.o: sampleprint.c
#sine
sne: sne.o
$(CC) sne.o -o $(BINPATH)/sne
sne.o: sne.c
#play
play: play.o
$(CC) play.o -o $(BINPATH)/play
play.o: play.c
#plot
plot: plot.o
$(CC) plot.o -o $(BINPATH)/plot
plot.o: plot.c
#unpacker
unpacker_o = unpacker.o convert.o
unpacker: $(unpacker_o)
$(CC) $(unpacker_o) -o unpacker
#packer
packer_o = packer.o convert.o
packer: $(packer_o)
$(CC) $(packer_o) -o packer
clean:
rm -f *.o
cleaner: clean
rm -f intgen play sine plot packer unpacker
rm -f *.BAK
rm -f *~
|