Codebase list libsdl2-mixer / debian/2.5.2+dfsg-1 debian / examples / Makefile
debian/2.5.2+dfsg-1

Tree @debian/2.5.2+dfsg-1 (Download .tar.gz)

Makefile @debian/2.5.2+dfsg-1raw · history · blame

# Makefile for playmus and playwave

CC = gcc
CFLAGS = $(shell sdl2-config --cflags) -Wall -O
LIBS = $(shell sdl2-config --libs) -lSDL2_mixer
EXE = playmus playwave

all: $(EXE)

playmus: playmus.c Makefile
	$(CC) -o $@ $@.c $(CFLAGS) $(LIBS)

playwave: playwave.c Makefile
	$(CC) -o $@ $@.c $(CFLAGS) $(LIBS)

clean:
	-rm *.o $(EXE)