Commit ee8b8f43 authored by Adam Wujek's avatar Adam Wujek 💬

tools: use implicit rules in Makefile

Such change simplifies support for CERN's build environment.
Signed-off-by: Adam Wujek's avatarAdam Wujek <adam.wujek@cern.ch>
parent 320327f8
......@@ -19,13 +19,12 @@ TESTS = fmc-tdc-list \
CFLAGS = -I. -I$(LIBTDC) -I../kernel -Wall $(EXTRACFLAGS)
COMMON_SRCS = test-common.c
LDFLAGS = -L$(LIBTDC) -lfmctdc
LDFLAGS = -L$(LIBTDC)
LDLIBS = -lfmctdc
all: $(TESTS)
%: %.c $(COMMON_SRCS)
$(CC) $(CFLAGS) $*.c $(COMMON_SRCS) $(LDFLAGS) -o $@
$(TESTS): $(COMMON_SRCS:.c=.o)
clean:
rm -f $(TESTS) test-common.o
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment