PROJECT=ihe CC=gcc CFLAGS= SOURCES=buf.c core.c OBJECTS=$(SOURCES:.c=.o) LIB_OBJECTS=libcmd/libcmd.o libterm/libterm.o all: clean $(OBJECTS) $(PROJECT) $(PROJECT): $(CC) $(CFLAGS) $(OBJECTS) $(LIB_OBJECTS) $(PROJECT).c -o $(PROJECT) %.o: %.c $(CC) $(CFLAGS) -c $< clean: rm -f $(PROJECT) rm -f *.o leak: valgrind --leak-check=full --track-origins=yes --log-file=log.txt ./ihe