summaryrefslogtreecommitdiff
path: root/Makefile
blob: 4a6b232069d6ff242bc60c13397d50af5ab18347 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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