summaryrefslogtreecommitdiff
path: root/userland/libppm/Makefile
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-10-30 22:44:02 +0100
committerAnton Kling <anton@kling.gg>2023-10-31 00:18:38 +0100
commit34342b53c39aa3f22326b6e4eda960cc20cfa0f0 (patch)
tree01bc4fcbc78623e406bcfa45dd9bd04ebd915663 /userland/libppm/Makefile
parent8a9208612eec8ddae4c418485d848ecfa0613699 (diff)
Meta: Create simple build scripts for kernel, userland and general enviroment
Diffstat (limited to 'userland/libppm/Makefile')
-rw-r--r--userland/libppm/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/userland/libppm/Makefile b/userland/libppm/Makefile
new file mode 100644
index 0000000..405e1dd
--- /dev/null
+++ b/userland/libppm/Makefile
@@ -0,0 +1,15 @@
+CC="i686-sb-gcc"
+CFLAGS = -ggdb -O3 -Wall -Wextra -pedantic
+LIB=-L../libgui -lgui
+INC=-I../libgui/
+BINS=ppm
+all: $(BINS)
+
+ppm.o: ppm.c
+ $(CC) $(CFLAGS) $(INC) $(LIB) -o $@ -c $<
+
+ppm: ppm.o
+ $(CC) $(CFLAGS) -o $@ $^ $(LIB)
+
+clean:
+ rm $(BINS) *.o