summaryrefslogtreecommitdiff
path: root/libphysics/test/Makefile
diff options
context:
space:
mode:
authoresquizo <esquizo+noreply@esquizo.net>2026-05-17 12:02:56 -0300
committeresquizo <esquizo+noreply@esquizo.net>2026-05-17 12:02:56 -0300
commit97702f11ea016ca2e395f71f03c3fc3a2ee929ca (patch)
tree20380f895ee422c48b970c7da5b921e046e35da4 /libphysics/test/Makefile
parent5c6b3c19172948cf2e1800a9333cfcd858ee829c (diff)
adicionado libphysics
Diffstat (limited to 'libphysics/test/Makefile')
-rw-r--r--libphysics/test/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/libphysics/test/Makefile b/libphysics/test/Makefile
new file mode 100644
index 0000000..eb1d5cb
--- /dev/null
+++ b/libphysics/test/Makefile
@@ -0,0 +1,19 @@
+CFLAGS=-I../../include -g
+LDFLAGS=-L../ -lphysics `pkg-config --libs sdl3`
+
+all: vis
+
+clean:
+ rm -f vis
+ rm -f vis.o
+
+vis: ../libphysics.a vis.o
+ $(CC) $^ $(LDFLAGS) -o $@
+
+%.o: %.c
+ $(CC) $< $(CFLAGS) -c -o $@
+
+../libphysics.a:
+ $(MAKE) -C .. all
+
+.PHONY: all clean