home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 5
/
FreshFish_July-August1994.bin
/
bbs
/
misc
/
smiley-4.lha
/
Smiley-4
/
Makefile.amiga_gcc
< prev
next >
Wrap
Makefile
|
1994-03-02
|
944b
|
51 lines
#-------
# M a k e f i l e
#
# DaviD W. Sanderson
#-------
TARGET = smiley
OBJECTS = bsearch.o faces.o getopt.o ltoa.o smiley.o
CFLAGS = -O
CC = GCC
LDFLAGS = -s
all: $(TARGET)
$(TARGET): $(OBJECTS)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJECTS)
smiley.o: smiley.c smiley.h patchlevel.h
$(CC) $(CFLAGS) -c smiley.c -o smiley.o
faces.o: faces.c
$(CC) $(CFLAGS) -c faces.c -o faces.o
bsearch.o: bsearch.c
$(CC) $(CFLAGS) -c bsearch.c -o bsearch.o
getopt.o: getopt.c
$(CC) $(CFLAGS) -c getopt.c -o getopt.o
ltoa.o: ltoa.c
$(CC) $(CFLAGS) -c ltoa.c -o ltoa.o
#OLD ./mkfaces < faces.in > faces.c
# play it safe and make sure the list is sorted,
# since it is searched by bsearch(3):
faces.c: mkfaces faces.in
sort faces.in faces.in_sort
mkfaces <faces.in_sort >faces.c
mkfaces: mkfaces.c
$(CC) $(CFLAGS) -o mkfaces mkfaces.c
clean:
delete $(OBJECTS) mkfaces faces.c faces.in_sort