-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
24 lines (23 loc) · 821 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
CFLAGS = `sdl2-config --cflags` -I/usr/include/SDL2 -std=c++11 -c
LDFLAGS = `sdl2-config --libs` -lSDL2_ttf
OBJECTS = App.o Button.o main.o UIElement.o Text.o Input.o background.o
CC = g++
EXE = gen
$(EXE) : $(OBJECTS)
$(CC) $(LDFLAGS) $(OBJECTS) -o $(EXE)
App.o : App.h UIElement.h App.cpp Input.h Text.h Defines.h
$(CC) $(CFLAGS) App.cpp
Button.o : Button.h Button.cpp UIElement.h Defines.h
$(CC) $(CFLAGS) Button.cpp
main.o : App.h main.cpp
$(CC) $(CFLAGS) main.cpp
UIElement.o : UIElement.h UIElement.cpp Defines.h
$(CC) $(CFLAGS) UIElement.cpp
Text.o : Text.h Text.cpp UIElement.h Defines.h
$(CC) $(CFLAGS) Text.cpp
Input.o : Input.h UIElement.h Input.cpp Defines.h
$(CC) $(CFLAGS) Input.cpp
background.o : background.bmp
objcopy -B i386 -I binary -O elf64-x86-64 background.bmp background.o
clean:
rm *.o