aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 09dded0e187e288d8c61a80f09c2bad55074e53b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
.PHONY: clean

CFLAGS = -g -W -Wall -std=c11 `sdl2-config --cflags`
LDFLAGS = `sdl2-config --libs` -lpng -ljpeg

TARGET = imv
SOURCES = $(wildcard *.c)
OBJECTS = $(SOURCES:%.c=%.o)

$(TARGET): $(OBJECTS)
	$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)

clean:
	$(RM) $(TARGET) $(OBJECTS)