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

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

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

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