aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: a1e80b7bdab39757cb38253197c6a7b8180741ff (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` -lfreeimage

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

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

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