Source

codehound / Makefile

Full commit
-include config.mk

OBJ := codehound.o sparse.o index.o

all: codehound

codehound: $(OBJ)
	$(CC) $(CFLAGS) $(LDFLAGS) $^ -o $@

index.o: index.c index.h
sparse.o: sparse.c sparse.h

test:
	make -C tests

clean:
	-make -C tests clean
	-rm -f codehound
	-rm -f $(OBJ)

.PHONY: all test clean