mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-24 20:12:07 +00:00
asm: make rgbasm compile on Linux
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
This commit is contained in:
13
src/asm/Makefile
Normal file
13
src/asm/Makefile
Normal 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
|
||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user