Add Makefile.
This commit is contained in:
parent
cb38eeee09
commit
0d8c79c403
1 changed files with 17 additions and 0 deletions
17
Makefile
Normal file
17
Makefile
Normal 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}
|
Loading…
Reference in a new issue