19 lines
343 B
Makefile
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
|