Updated documentation for newly introduced functions.
[gfxprim.git] / Makefile
blobc0c29afeddbc2a540cae001899981a35dca3ca8c
1 HEADER_LOC=/usr/include/
2 LIB_LOC=/usr/lib/
4 .PHONY: all core sdl drivers loaders install filters clean tar
6 all: core sdl drivers loaders filters
8 drivers:
9 cd drivers && $(MAKE) all
11 core:
12 cd core && $(MAKE) all
14 sdl: core
15 cd targets/sdl && $(MAKE) all
17 loaders:
18 cd loaders && $(MAKE) all
20 filters:
21 cd filters && $(MAKE) all
23 install:
24 # core library
25 install -m 775 -d $(HEADER_LOC)GP/
26 install -m 664 core/*.h $(HEADER_LOC)GP/
27 install -m 664 core/*.so core/*.so.0 core/*.a $(LIB_LOC)
28 # bitmap loaders
29 install -m 775 -d $(HEADER_LOC)GP/loaders/
30 install -m 664 loaders/*.h $(HEADER_LOC)GP/loaders/
31 install -m 664 loaders/*.so loaders/*.so.0 loaders/*.a $(LIB_LOC)
32 # context filters
33 install -m 775 -d $(HEADER_LOC)GP/filters/
34 install -m 664 filters/*.h $(HEADER_LOC)GP/filters/
35 install -m 664 filters/*.so filters/*.so.0 filters/*.a $(LIB_LOC)
36 # sdl target
37 install -m 775 -d $(HEADER_LOC)GP/SDL/
38 install -m 664 targets/sdl/*.h $(HEADER_LOC)GP/SDL/
39 install -m 664 targets/sdl/*.so targets/sdl/*.so.0 targets/sdl/*.a $(LIB_LOC)
41 clean:
42 cd core && $(MAKE) clean
43 cd targets/sdl && $(MAKE) clean
44 cd drivers && $(MAKE) clean
45 cd loaders && $(MAKE) clean
46 cd filters && $(MAKE) clean
48 tar: clean
49 cd .. && tar cjf gfxprim-`date +%Y-%b-%d-%HH%MM`.tar.bz2 gfxprim