aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0c2c47a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+STRIP = strip
+CC = gcc
+CFLAGS = -D__USE_INLINE__ -O3 -ffast-math -finline-functions -funroll-loops -fstrict-aliasing -Wall -I$(SRC)c64
+LDFLAGS = -lsndfile
+TARGET = sam_player
+
+OBJS = sam.o sam_player.o wave_linux.o c64/c64.o c64/cia.o c64/cpu.o c64/kbd.o c64/mem.o c64/prg_file.o c64/sid.o c64/tape.o
+
+%.o: %.c
+ $(CC) $(CFLAGS) -o $@ -c $*.c
+
+all: $(TARGET)
+
+$(TARGET): $(OBJS)
+ $(CC) $(OBJS) -o $@ $(LDFLAGS)
+ $(STRIP) --strip-all $@
+
+
+clean:
+ rm -f *.o $(TARGET) c64/*.o