forked from C-Chads/tinygl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (34 loc) · 1007 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
LIBNAME=libTinyGL.a
LIB=lib/$(LIBNAME)
LIBDIR=/usr/local/lib
INCDIR=/usr/local/include
BINDIR=/usr/local/bin
all: $(LIB) RDMOS
@echo Done!
$(LIB):
cd src && $(MAKE) && cd ..
cp src/*.a ./lib/
install: $(LIB)
cp $(LIB) $(LIBDIR)
mkdir $(INCDIR)/tinygl || echo "You installed before?"
cp -r include/* $(INCDIR)/tinygl
uninstall:
rm -f $(LIBDIR)/$(LIBNAME)
rm -rf $(INCDIR)/tinygl
SDL_Examples: $(LIB)
@echo "These demos require SDL 1.2 to compile."
cd SDL_Examples && $(MAKE) && cd ..
tglgears: $(LIB)
@echo "These demos require SDL 1.2 to compile."
cd SDL_Examples && $(MAKE) install_tglgears && cd ..
RDMOS: $(LIB)
@echo "Building the RAW DEMOS. These do not require anything special on your system, so they should succeed."
cd Raw_Demos && $(MAKE) && cd ..
clean:
cd src && $(MAKE) clean && cd ..
cd SDL_Examples && $(MAKE) clean && cd ..
cd Raw_Demos && $(MAKE) clean && cd ..
cd lib && rm -f *.a && cd ..
#clean:
# rm -f *~ *.o *.a
# cd SDL_Examples && $(MAKE) clean && cd ..