clean: test-clean
$(RM) src/*.o src/*.do src/*.lo src/hints.js.h
- $(RM) tests/$(LIBTARGET) $(TARGET) $(DTARGET)
+ $(RM) $(TARGET) $(DTARGET)
test-clean:
+ $(RM) $(LIBTARGET)
@$(MAKE) $(MFLAGS) -C tests clean
dist: dist-clean
@$(CC) $(DOBJ) -o $@ $(DLDFLAGS)
$(LIBTARGET): $(LOBJ)
- @echo "$(CC) tests/$@"
- @$(CC) -shared ${LOBJ} -o ./tests/$(LIBTARGET) $(LDFLAGS)
+ @echo "$(CC) $@"
+ @$(CC) -shared ${LOBJ} -o $@ $(LDFLAGS)
src/config.h:
@echo create $@ from src/config.def.h
@echo "${CC} $@"
@$(CC) -DTESTLIB $(DFLAGS) -fPIC -c -o $@ $<
-.PHONY: clean debug all install uninstall options dist test
+.PHONY: clean debug all install uninstall options dist dist-clean test test-clean
TARGET = $(PROJECT)
DTARGET = $(TARGET)_dbg
-LIBTARGET = lib$(PROJECT).so
+LIBTARGET = tests/lib$(PROJECT).so
DIST_FILE = $(PROJECT)_$(VERSION).tar.gz
MANDIR1 = $(MANDIR)/man1
MAN1 = $(PROJECT).1
all: $(TEST_PROGS)
LD_LIBRARY_PATH="$(LD_LIBRARY_PATH):." gtester --verbose $(TEST_PROGS)
-${TEST_PROGS}: $(LIBTARGET)
+${TEST_PROGS}: $(notdir $(LIBTARGET))
clean:
rm -f $(TEST_PROGS)