ref: 1024c308660c595e8c32f42abf808fe8c8d4f997
parent: b53e17078150a42cc74e78e3f4327457c66854e0
author: Vegard Nossum <[email protected]>
date: Thu Jun 11 02:50:48 EDT 2009
asm: make rgbasm compile on Linux Signed-off-by: Vegard Nossum <[email protected]>
--- /dev/null
+++ b/src/asm/Makefile
@@ -1,0 +1,13 @@
+all: rgbasm
+
+asmy.y: yaccprt1.y gameboy/yaccprt2.y yaccprt3.y gameboy/yaccprt4.y
+ cat $^ > $@
+
+.y.c:
+ bison -d -o $@ $^
+
+.c.o:
+ gcc -Wall -DGAMEBOY -I. -I.. -Iinclude -Igameboy -g -c -o $@ $<
+
+rgbasm: $(patsubst %.c,%.o,$(wildcard *.c) $(wildcard gameboy/*.c))
+ gcc -Wall -o $@ $^ -lm
--- a/src/asm/include/output.h
+++ b/src/asm/include/output.h
@@ -1,6 +1,7 @@
#ifndef OUTPUT_H
#define OUTPUT_H 1
+#include "rpn.h"
#include "types.h"
struct Section
@@ -32,4 +33,4 @@
void out_PushSection( void );
void out_PopSection( void );
-#endif
\ No newline at end of file
+#endif