asm: make rgbasm compile on Linux

Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
This commit is contained in:
Vegard Nossum
2009-06-11 06:50:48 +02:00
parent b53e170781
commit 1024c30866
2 changed files with 15 additions and 1 deletions

13
src/asm/Makefile Normal file
View File

@@ -0,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

View File

@@ -1,6 +1,7 @@
#ifndef OUTPUT_H #ifndef OUTPUT_H
#define OUTPUT_H 1 #define OUTPUT_H 1
#include "rpn.h"
#include "types.h" #include "types.h"
struct Section struct Section
@@ -32,4 +33,4 @@ void out_RelLong (struct Expression *expr);
void out_PushSection( void ); void out_PushSection( void );
void out_PopSection( void ); void out_PopSection( void );
#endif #endif