# Makefile that compiles and starts up(!) the C-program # 'synth' on UNIX. Pieter Suurmond, 2004. # Name of executable: PRG = synth # Compiler (you can change it to 'cc' or something else): CC = gcc # Compiler optimization-level and warnings: CFLAGS = -O2 -Wall # Source files: SRC = $(PRG).c\ rdmid.c\ wraiff.c # Math library: LIBS = -lm all: $(PRG) $(PRG): $(SRC) rdmid.h wraiff.h Makefile $(CC) $(CFLAGS) $(SRC) -o $(PRG) $(LIBS) ./$(PRG) clean: -rm *.o $(PRG) core *~ .depend