12345678910111213141516171819202122232425 |
- CFLAGS = -Wall -Wextra -mtune=native `sdl2-config --cflags`
- LDFLAGS = `sdl2-config --libs` -lSDL2_image -lSDL2_mixer -lm
- .SUFFIXES:
- .SUFFIXES: .c .o
- TARGETS = sm
- .PHONY: all
- all: $(TARGETS)
- sm: main.cpp slider.o song.o
- g++ $(CFLAGS) -o $@ $+ $(LDFLAGS)
- slider.o: slider.cpp
- g++ $(CFLAGS) -c -o $@ $+ $(LDFLAGS)
- song.o: $(srcdir)song.cpp
- g++ $(CFLAGS) -c -o $@ $+ $(LDFLAGS)
- .PHONY: clean
- clean:
- @rm $(TARGETS) 2>/dev/null || true
|