aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2021-02-26 18:23:22 +0100
committerMattias Andrée <maandree@kth.se>2021-02-26 18:23:22 +0100
commite4dbd976e9522d5fa17139126edf38d654f45b1d (patch)
treec094b08baa9f548221f8d72a3942ba4375523e24 /Makefile
parentm (diff)
downloadlibsimple-e4dbd976e9522d5fa17139126edf38d654f45b1d.tar.gz
libsimple-e4dbd976e9522d5fa17139126edf38d654f45b1d.tar.bz2
libsimple-e4dbd976e9522d5fa17139126edf38d654f45b1d.tar.xz
Fix tests and libsimple_arraycpy and libsimple_arraymove1.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 61d07da..cc1c5c9 100644
--- a/Makefile
+++ b/Makefile
@@ -222,7 +222,9 @@ all: libsimple.a $(TESTS)
$(OBJ): $(@:.o=.c) $(HDR)
$(TESTS): $(@:=.o) test.o libsimple.a
$(TESTS:=.o): $(@:.test.o=.c) $(HDR) test.h
+
test.o: test.c $(HDR) test.h
+ $(CC) -c -o $@ test.c $(CFLAGS) -DTEST -O0 -ffreestanding
libsimple.a: $(OBJ)
$(AR) rc $@ $?