Makefile 306 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CC		= gcc

CFLAGS		= -g -Wall -pedantic

LDFLAGS		= -g

OUT		= sh

OBJS		= sh.o list.o

main: $(OBJS)
	$(CC) $(LDFLAGS) $(OBJS) -o $(OUT)

clean:
	rm -f *.o sh core out
16
	rm -r test-dir-*
17

Alexandru Dura's avatar
Alexandru Dura committed
18
19
20
21
22
shell-test: shell-test.c
	$(CC) -D_DEFAULT_SOURCE -Wall $< -o $@

test: main shell-test
	./shell-test `pwd`/$(OUT) -n