2011-04-04 17:11:18 +00:00
|
|
|
CC=gcc
|
2011-04-04 17:20:04 +00:00
|
|
|
CFLAGS=-Wall -O2
|
2011-04-04 17:11:18 +00:00
|
|
|
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}
|