summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..c554942
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+# Makefile for building AlphaGen on RISC OS.
+
+# Needs NSTools for libpng and libz.
+# http://www.netsurf-browser.org/downloads/other/nstools.zip
+
+.SUFFIXES: .c .o
+.c.o:
+ gcc -I<NSLibs$$Dir>/include -std=c9x -mpoke-function-name -mthrowback -c -O2 $<
+
+SRC = $(wildcard *.c)
+
+OBJ = $(SRC:.c=.o)
+
+nslog: $(OBJ)
+ gcc -L<NSLibs$$Dir>/lib -lpng -lz -o alphagen $(OBJ)