Debian Codegraph @

src/common/Makefile

raw symbols SCIP
1 # Makefile for Unix Frotz
2 # GNU make is required.
3
4 SOURCES = buffer.c err.c fastmem.c files.c getopt.c hotkey.c input.c \
5 main.c math.c missing.c object.c process.c quetzal.c random.c \
6 redirect.c screen.c sound.c stream.c table.c text.c variable.c
7
8 HEADERS = frotz.h setup.h unused.h
9
10 OBJECTS = $(SOURCES:.c=.o)
11
12 TARGET = frotz_common.a
13
14 ARFLAGS = rc
15
16 .PHONY: clean
17 .DELETE_ON_ERROR:
18
19 $(TARGET): $(OBJECTS)
20 $(AR) $(ARFLAGS) $@ $?
21 $(RANLIB) $@
22 @echo "** Done with Frotz core."
23
24 clean:
25 rm -f $(TARGET) $(OBJECTS)
26 rm -f *.o defs.h *.O DEFS.H
27
28 %.o: %.c
29 $(CC) $(CFLAGS) -fPIC -fpic -o $@ -c $<