-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile.linux
More file actions
35 lines (31 loc) · 934 Bytes
/
Makefile.linux
File metadata and controls
35 lines (31 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
CXX = g++ -ggdb
CC = gcc -ggdb
INCS = -I/usr/include/SDL
LIBS = -L/usr/lib64/GL -L/usr/lib64/SDL -lSDL -lSDL_ttf -lGL -lGLU
OBJS = src/gloid_base.o src/gloid_functions.o src/gloid_main.o src/gloid_world.o src/gloid_loading.o
TARGET = gloid
WORKPATH = /usr/local/share/gloid
all: $(OBJS)
$(CXX) $(LIBS) $(OBJS) -o $(TARGET)
%.o: %.cpp
$(CXX) $(INCS) -c $< -o $@
clean:
rm -f $(OBJS) $(TARGET)
install:
cp gloid /usr/bin/;
mkdir -p $(WORKPATH)/textures;
mkdir -p $(WORKPATH)/levels;
mkdir -p $(WORKPATH)/sounds;
cp -uf textures/* $(WORKPATH)/textures;
cp -uf levels/* $(WORKPATH)/levels;
cp -uf sounds/* $(WORKPATH)/sounds;
touch $(WORKPATH)/log.txt;
cp -uf hallofame.txt $(WORKPATH);
cp -uf arkanoid.txt $(WORKPATH);
cp -uf DejaVuSans.ttf $(WORKPATH);
chmod 777 $(WORKPATH)/log.txt;
chmod 777 $(WORKPATH)/hallofame.txt;
uninstall:
rm /usr/bin/gloid;
rm -rf $(WORKPATH)/*
rmdir $(WORKPATH)