You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sems/core/plug-in/binrpcctrl/libbinrpc/tests/Makefile

26 lines
342 B

CFLAGS+=-I../include -L../src
LDLIBS+=-lbinrpc
SRC=$(wildcard test_*.c)
DEP=$(SRC:.c=.d)
BIN=$(SRC:.c=)
%.d: %.c Makefile*
$(CC) $(CFLAGS) $< $(LDLIBS) -o $(subst .c,,$<)
.PHONY: all
all: libbinrpc $(DEP)
.PHONY: libbinrpc
ifeq ($(MAKELEVEL),0)
libbinrpc:
$(MAKE) -C ..
else
libbinrpc:
endif # MAKELEVEL
clean:
rm -rf $(BIN) $(DEP)