aboutsummaryrefslogtreecommitdiffstats
path: root/makefile
blob: a983411f808d85256f4fc72affc84aa148ecdcc2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
XX = g++

SDL_LIB = -L/usr/local/lib -lSDL2 -Wl,-rpath=/usr/local/lib
SDL_INCLUDE = -I/usr/include

CXXFLAGS = -Wall -c -std=c++11 $(SDL_INCLUDE)
LDFLAGS = $(SDL_LIB)
EXE = fungi

all: $(EXE)


$(EXE): fungi.o

	$(CXX) $< $(LDFLAGS) -o $@

main.o: fungi.cpp

	$(CXX) $(CXXFLAGS) $< -o $@

clean:

	rm *.o && rm $(EXE)