aboutsummaryrefslogtreecommitdiffstats
path: root/tests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/Makefile54
1 files changed, 30 insertions, 24 deletions
diff --git a/tests/Makefile b/tests/Makefile
index db5caa7..6e0d8da 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -1,32 +1,38 @@
.POSIX:
-BIN =\
- abort.t\
- cont.t\
- exec.t\
- exit.t\
- fork.t\
- fork-stop.t\
- kill.t\
- raise.t\
- siginfo.t\
- signal.t\
- stop.t\
- threads.t\
- tstp.t\
- vfork.t\
- vfork-exec.t
-
-all: $(BIN)
-$(BIN): $(@:.t=.c)
-
-.c.t:
- $(CC) -static -pthread -Og -g -o $@ $< -D_XOPEN_SOURCE=700
+BIN_64 =\
+ abort.64\
+ cont.64\
+ exec.64\
+ exit.64\
+ fork.64\
+ fork-stop.64\
+ kill.64\
+ raise.64\
+ siginfo.64\
+ signal.64\
+ stop.64\
+ threads.64\
+ tstp.64\
+ vfork.64\
+ vfork-exec.64
+
+BIN_32 = $(BIN_64:.64=.32)
+
+all: $(BIN_64) $(BIN_32)
+$(BIN_64): $(@:.64=.c)
+$(BIN_32): $(@:.32=.c)
+
+.c.64:
+ $(CC) -static -pthread -Og -g -o $@ $< -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE
+
+.c.32:
+ $(CC) -m32 -static -pthread -Og -g -o $@ $< -D_XOPEN_SOURCE=700 -D_DEFAULT_SOURCE
clean:
- -rm -f -- $(BIN)
+ -rm -f -- $(BIN_64) $(BIN_32)
.SUFFIXES:
-.SUFFIXES: .t .c
+.SUFFIXES: .32 .64 .c
.PHONY: all clean