blob: 493236862e69d0b9e695ba9b987e2a589f3529f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
.PHONY: clean install
prefix = /usr
CFLAGS = -g -W -Wall -std=gnu11 `sdl2-config --cflags`
LDFLAGS = `sdl2-config --libs` -lfreeimage
TARGET = imv
OBJECTS = main.o image.o texture.o navigator.o
$(TARGET): $(OBJECTS)
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
clean:
$(RM) $(TARGET) $(OBJECTS)
install: $(TARGET)
install -m 0755 $(TARGET) $(prefix)/bin
|