all: noise noise: main.o player.o songs.o instruments.o heap.o gcc $(CFLAGS) -o noise main.o player.o songs.o instruments.o heap.o\ $(shell allegro-config --libs) $(LIBS) main.o: main.c heap.h instruments.h noise.h gcc $(CFLAGS) -c -o main.o main.c player.o: player.c heap.h instruments.h noise.h gcc $(CFLAGS) -c -o player.o player.c songs.o: songs.c heap.h instruments.h noise.h gcc $(CFLAGS) -c -o songs.o songs.c instruments.o: instruments.c heap.h instruments.h noise.h gcc $(CFLAGS) -c -o instruments.o instruments.c heap.o: heap.c heap.h instruments.h noise.h gcc $(CFLAGS) -c -o heap.o heap.c run: noise ./noise clean: -rm -f noise main.o player.o songs.o instruments.o heap.o .PHONY: all run clean