1 HEADER_LOC
=/usr
/include/
4 .PHONY
: all core sdl drivers loaders
install filters
clean tar
6 all: core sdl drivers loaders filters
9 cd drivers
&& $(MAKE
) all
12 cd core
&& $(MAKE
) all
15 cd targets
/sdl
&& $(MAKE
) all
18 cd loaders
&& $(MAKE
) all
21 cd filters
&& $(MAKE
) all
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
)
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
)
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
)
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
)
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
49 cd ..
&& tar cjf gfxprim-
`date +%Y-%b-%d-%HH%MM`.
tar.bz2 gfxprim