Add Makefile.

This commit is contained in:
James Churchill 2011-04-05 03:11:18 +10:00
parent cb38eeee09
commit 0d8c79c403

17
Makefile Normal file
View file

@ -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}