mirror of
https://github.com/troglobit/libite.git
synced 2026-11-26 20:38:16 +00:00
Remove last remnants of old build/unit test framework
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
682b662bd5
commit
661b4b4d0b
2 files changed
-34
No files matched your search
@@ -1,30 +0,0 @@
|
|||||||
CFLAGS += -g -O0
|
|
||||||
CPPFLAGS += -D_GNU_SOURCE
|
|
||||||
|
|
||||||
ifeq ($V,1)
|
|
||||||
VERBOSE = -v
|
|
||||||
REDIRECT =
|
|
||||||
else
|
|
||||||
VERBOSE =
|
|
||||||
REDIRECT = >/dev/null
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Some tests may need to be run as root, e.g. pidfile()
|
|
||||||
ifeq ($(ASROOT), 1)
|
|
||||||
SUDO = sudo -n
|
|
||||||
else
|
|
||||||
SUDO =
|
|
||||||
endif
|
|
||||||
|
|
||||||
all: $(TARGET)
|
|
||||||
|
|
||||||
%.test: %.c
|
|
||||||
@printf " TEST $@\n"
|
|
||||||
@$(CC) $(CFLAGS) $(CPPFLAGS) -g -o $@ -DUNITTEST $< $(OBJS)
|
|
||||||
@$(RM) $(OBJS)
|
|
||||||
@$(SUDO) ./$@ $(VERBOSE) $(REDIRECT)
|
|
||||||
|
|
||||||
clean::
|
|
||||||
-@$(RM) $(OBJS) $(DEPS) $(TARGET) $(SOLIB) $(STATICLIB)
|
|
||||||
-@$(RM) $(JUNK) unittest *.o *.a *.so* *.unittest *.test
|
|
||||||
|
|
||||||
Reference in new issue
Block a user