blob: 70e57ca31c3e40ac2eca79a0490e917356d7164e [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
Rich Lane661bc022013-12-16 00:03:07 -08007CFLAGS := -Wall -Werror -g -Os
Rich Lane9ff6d162013-07-21 23:32:27 -07008CFLAGS += -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