Rich Lane | d587c8c | 2013-12-15 14:51:33 -0800 | [diff] [blame] | 1 | LOCITEST_SRCS := $(wildcard src/*.c) |
2 | LOCI_SRCS := $(wildcard ../loci/src/*.c) | ||||
Rich Lane | 9ff6d16 | 2013-07-21 23:32:27 -0700 | [diff] [blame] | 3 | |
Rich Lane | d587c8c | 2013-12-15 14:51:33 -0800 | [diff] [blame] | 4 | LOCITEST_OBJS := $(LOCITEST_SRCS:.c=.o) |
5 | LOCI_OBJS := $(LOCI_SRCS:.c=.o) | ||||
Rich Lane | 9ff6d16 | 2013-07-21 23:32:27 -0700 | [diff] [blame] | 6 | |
Rich Lane | 661bc02 | 2013-12-16 00:03:07 -0800 | [diff] [blame^] | 7 | CFLAGS := -Wall -Werror -g -Os |
Rich Lane | 9ff6d16 | 2013-07-21 23:32:27 -0700 | [diff] [blame] | 8 | CFLAGS += -Iinc -I../loci/inc -I ../loci/src |
9 | |||||
10 | all: locitest | ||||
11 | |||||
Rich Lane | d587c8c | 2013-12-15 14:51:33 -0800 | [diff] [blame] | 12 | locitest: $(LOCITEST_OBJS) loci.a |
Rich Lane | 9ff6d16 | 2013-07-21 23:32:27 -0700 | [diff] [blame] | 13 | $(CC) $^ -o $@ |
Rich Lane | 9846732 | 2013-10-18 14:31:47 -0700 | [diff] [blame] | 14 | |
Rich Lane | d587c8c | 2013-12-15 14:51:33 -0800 | [diff] [blame] | 15 | loci.a: $(LOCI_OBJS) |
16 | ar rc $@ $^ | ||||
17 | |||||
18 | clean: | ||||
19 | rm -f locitest loci.a $(LOCITEST_OBJS) $(LOCI_OBJS) | ||||
20 | |||||
Rich Lane | 9846732 | 2013-10-18 14:31:47 -0700 | [diff] [blame] | 21 | # BSN build system magic |
22 | MODULE := locitest |