summaryrefslogtreecommitdiff
path: root/com32/lib/syslinux/tests/Makefile
blob: 18b40fc525c5d3b747b8fd1644fd8f631a7e7cd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
CFLAGS = -I$(topdir)/tests/unittest/include

tests = zonelist movebits memscan load_linux
.INTERMEDIATE: $(tests)

all: banner $(tests)
	for t in $(tests); \
		do printf "      [+] $$t passed\n" ; ./$$t ; done
banner:
	printf "    Running library unit tests...\n"

harness-files = test-harness.c

zonelist: zonelist.c ../zonelist.c $(harness-files)
movebits: movebits.c ../movebits.c $(harness-files)
memscan: memscan.c ../memscan.c
load_linux: load_linux.c

%: %.c
	$(CC) $(CFLAGS) -o $@ $<