blob: 966fe9b2ef4e36bf1c06a431c9f7bda0febb5bf7 [file] [log] [blame]
Rich Laned587c8c2013-12-15 14:51:33 -08001LOCITEST_SRCS := $(wildcard src/*.c)
2LOCI_SRCS := $(wildcard ../loci/src/*.c)
Rich Lane9ff6d162013-07-21 23:32:27 -07003
Rich Laned587c8c2013-12-15 14:51:33 -08004LOCITEST_OBJS := $(LOCITEST_SRCS:.c=.o)
5LOCI_OBJS := $(LOCI_SRCS:.c=.o)
Rich Lane9ff6d162013-07-21 23:32:27 -07006
7CFLAGS := -Wall -Werror -g
8CFLAGS += -Iinc -I../loci/inc -I ../loci/src
9
10all: locitest
11
Rich Laned587c8c2013-12-15 14:51:33 -080012locitest: $(LOCITEST_OBJS) loci.a
Rich Lane9ff6d162013-07-21 23:32:27 -070013 $(CC) $^ -o $@
Rich Lane98467322013-10-18 14:31:47 -070014
Rich Laned587c8c2013-12-15 14:51:33 -080015loci.a: $(LOCI_OBJS)
16 ar rc $@ $^
17
18clean:
19 rm -f locitest loci.a $(LOCITEST_OBJS) $(LOCI_OBJS)
20
Rich Lane98467322013-10-18 14:31:47 -070021# BSN build system magic
22MODULE := locitest