SBDP02/Makefile
2018-12-15 18:41:29 +01:00

19 lines
343 B
Makefile

CC=gcc
CFLAGS=-Wall -O2 -g
LDFLAGS=-lm -lreadline
all: makeidx openidx readidx
makeidx: makeidx.o io.o common.o index.o bitmap.o tape.o
readidx: readidx.o io.o common.o index.o bitmap.o tape.o
openidx: openidx.o io.o common.o index.o bitmap.o tape.o
-include $(wildcard *.d)
.c.o:
$(CC) $(CFLAGS) -MMD -c $< -o $@
clean:
rm *.o
rm *.d