simple tgmath test
[libm] / test / tgmath / Makefile
diff --git a/test/tgmath/Makefile b/test/tgmath/Makefile
new file mode 100644 (file)
index 0000000..b11fcf6
--- /dev/null
@@ -0,0 +1,16 @@
+CFLAGS=-g -Wall -D_GNU_SOURCE -fno-builtin -ffloat-store -std=c99 -I../../include
+LDFLAGS=-g
+
+all: tsystem
+
+clean:
+       rm -f *.o t tsystem
+
+t.o: t.c
+       $(CC) $(CFLAGS) -c -o $@ $<
+
+t: t.o ../../lib/libm.a
+       $(CC) $(LDFLAGS) -o $@ $+
+
+tsystem: t.o
+       $(CC) $(LDFLAGS) -lm -o $@ $<