18 lines
264 B
Makefile
18 lines
264 B
Makefile
CC=gcc
|
|
CFLAGS=-Wall -O0 -g
|
|
LDFLAGS=-lm -lreadline
|
|
|
|
all: makeidx openidx
|
|
|
|
makeidx: makeidx.o io.o common.o index.o bitmap.c
|
|
openidx: openidx.o io.o common.o index.o bitmap.c
|
|
|
|
-include $(wildcard *.d)
|
|
|
|
.c.o:
|
|
$(CC) $(CFLAGS) -MMD -c $< -o $@
|
|
|
|
clean:
|
|
rm *.o
|
|
rm *.d
|