blob: 70e57ca31c3e40ac2eca79a0490e917356d7164e [file] [log] [blame]
LOCITEST_SRCS := $(wildcard src/*.c)
LOCI_SRCS := $(wildcard ../loci/src/*.c)
LOCITEST_OBJS := $(LOCITEST_SRCS:.c=.o)
LOCI_OBJS := $(LOCI_SRCS:.c=.o)
CFLAGS := -Wall -Werror -g -Os
CFLAGS += -Iinc -I../loci/inc -I ../loci/src
all: locitest
locitest: $(LOCITEST_OBJS) loci.a
$(CC) $^ -o $@
loci.a: $(LOCI_OBJS)
ar rc $@ $^
clean:
rm -f locitest loci.a $(LOCITEST_OBJS) $(LOCI_OBJS)
# BSN build system magic
MODULE := locitest