about summary refs log tree commit diff
path: root/test/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'test/Makefile')
-rw-r--r--test/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile
index 4d44285f..9b7ab047 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -12,8 +12,12 @@ PROGS = testrandom
 
 all: $(PROGS)
 
-PORTBINARIES = testrandom
-OBJECTS = $(PORTBINARIES:%=%.o)
+testrandom.o: testrandom.c
+	$(CC_FOR_BUILD) -c -o $@ $(CFLAGS_FOR_BUILD) $<
+
+testrandom: testrandom.o
+	$(LD_FOR_BUILD) -o $@ $(LDFLAGS_FOR_BUILD) $<
+
 
 OMIT_TEST_RULE = 1
 include $(SRCDIR)/common.mk