dos33fsprogs/utils/gr-sim/bubble/Makefile
Vince Weaver c05084c289 gr-sim: uppercase the 6502 emulated registers
probably broke something, but this also was a pain as was
often accidentally using the vars, especially X and Y
2023-12-29 13:47:18 -05:00

32 lines
527 B
Makefile

CC = gcc
CFLAGS = -Wall -O2 -I.. -g
LFLAGS = -lm
SDL_LIBS= `sdl-config --libs`
SDL_INCLUDE= `sdl-config --cflags`
GR_SIM = ../gr-sim.a
all: bubble bubble_orig
####
bubble: bubble.o $(GR_SIM)
$(CC) -o bubble bubble.o $(GR_SIM) $(SDL_LIBS) $(LFLAGS)
bubble.o: bubble.c
$(CC) $(CFLAGS) -c bubble.c
####
bubble_orig: bubble_orig.o $(GR_SIM)
$(CC) -o bubble_orig bubble_orig.o $(GR_SIM) $(SDL_LIBS) $(LFLAGS)
bubble_orig.o: bubble_orig.c
$(CC) $(CFLAGS) -c bubble_orig.c
####
clean:
rm -f *~ *.o bubble bubble_orig