From 0d8c79c4033b03e7a6f7489e3effb7b87f76e6e7 Mon Sep 17 00:00:00 2001 From: James Churchill Date: Tue, 5 Apr 2011 03:11:18 +1000 Subject: [PATCH] Add Makefile. --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..631683e --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +CC=gcc +CFLAGS=-Wall +LDFLAGS= +SOURCES=main.c 65816.c +OBJECTS=$(SOURCES:.c=.o) +EXECUTABLE=dispel.exe + +all: $(SOURCES) $(EXECUTABLE) + +$(EXECUTABLE): $(OBJECTS) + $(CC) $(LDFLAGS) $(OBJECTS) -o $@ + +.c.o: + $(CC) -c $(CFLAGS) $< -o $@ + +clean: + rm *.o ${EXECUTABLE}