summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--progs/Makefile6
-rw-r--r--tests/Makefile4
2 files changed, 7 insertions, 3 deletions
diff --git a/progs/Makefile b/progs/Makefile
index f416e59..9462a2f 100644
--- a/progs/Makefile
+++ b/progs/Makefile
@@ -10,16 +10,18 @@ BUILD=$(PROGS)
ifeq ($(DYNAMIC),yes)
LDPATH = LD_LIBRARY_PATH=../libcap
+DEPSBUILD = all
else
LDFLAGS += --static
+DEPSBUILD = libcap.a
endif
-DEPS=../libcap/libcap.a ../libcap/libpsx.a
+DEPS=../libcap/libcap.a
all: $(BUILD)
$(DEPS):
- make -C ../libcap all
+ make -C ../libcap $(DEPSBUILD)
$(BUILD): %: %.o $(DEPS)
$(CC) $(CFLAGS) -o $@ $< $(LIBCAPLIB) $(LDFLAGS)
diff --git a/tests/Makefile b/tests/Makefile
index a555887..8956d5d 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -9,14 +9,16 @@ DEPS=../libcap/libcap.a ../libcap/libpsx.a
ifeq ($(DYNAMIC),yes)
LDPATH = LD_LIBRARY_PATH=../libcap
+DEPSBUILD = all
else
LDFLAGS += --static
+DEPSBUILD = libcap.a libpsx.a
endif
all: psx_test libcap_psx_test libcap_launch_test
$(DEPS):
- make -C ../libcap all
+ make -C ../libcap $(DEPSBUILD)
test: run_psx_test run_libcap_psx_test