Makefile 348 Bytes
Newer Older
1
TESTS = gs_logger simple_delay random_pulse_gen
2 3

CFLAGS = -I../include
4
LDFLAGS = -L../lib ../lib/libfinedelay.a -lm 
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
CC=gcc

.PHONY: all

all: $(TESTS)

define TEST_template =
	$(1): $$($(1).o)
endef

$(foreach test,$(TESTS),$(eval $(call TEST_template,$(test))))

$(TESTS):
		gcc $@.c -o $@ $(CFLAGS) $(LDFLAGS)

clean:
	rm -f $(ALL_OBJS) $(TESTS)