2012-03-12 19:53:04 +05:30
|
|
|
-include $(TOPDIR)/config.mk
|
|
|
|
|
|
|
|
OBJS ?= main.o
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: $(TEST)
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
-rm -f $(TEST) $(OBJS)
|
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install: all
|
|
|
|
install -d $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)
|
|
|
|
install -m755 $(TEST) $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)
|
2012-03-12 22:21:50 +05:30
|
|
|
ifdef EXTRA_FILES
|
|
|
|
for f in $(EXTRA_FILES); do \
|
|
|
|
install -m644 $${f} $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR); \
|
|
|
|
done
|
|
|
|
endif
|
2012-03-12 19:53:04 +05:30
|
|
|
|
|
|
|
.PHONY: uninstall
|
|
|
|
uninstall:
|
|
|
|
-rm -f $(DESTDIR)$(TESTSDIR)/$(TESTSSUBDIR)/$(TEST)
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
@printf " [CC]\t\t$@\n"
|
|
|
|
${SILENT}$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
|
|
|
|
|
|
|
|
$(TEST): $(OBJS)
|
|
|
|
@printf " [CCLD]\t\t$@\n"
|
|
|
|
${SILENT}$(CC) $^ $(CPPFLAGS) -L$(TOPDIR)/lib $(CFLAGS) \
|
2013-06-20 15:04:49 +05:30
|
|
|
$(PROG_CFLAGS) -lxbps -latf-c -o $@
|
2012-03-12 19:53:04 +05:30
|
|
|
|