Added makefile. Fixed char pointer warnings

This commit is contained in:
2017-12-13 15:42:10 +01:00
parent 2b6704f538
commit edc9b40636
3 changed files with 32 additions and 2 deletions

20
makefile Normal file
View File

@@ -0,0 +1,20 @@
#Infos: http://www.ijon.de/comp/tutorials/makefile.html
VERSION = 1.0
CC = cc
CFLAGS = -Wall -O3 -DVERSION=\"$(VERSION)\"
#LDFLAGS = -lm -lpthread `gtk-config --cflags` `gtk-config --libs` -lgthread
LDFLAGS = -lmpg123 -lao
OBJ = csoundbox.o
all: $(OBJ)
$(CC) $(CFLAGS) -o csoundbox $(OBJ) $(LDFLAGS)
%.o: %.c
$(CC) $(CFLAGS) -c $<
.PHONY: clean
clean:
rm -r *.o