1 |
# |
2 |
# $Id: Makefile.skel,v 1.28 2005/04/15 22:28:42 debug Exp $ |
3 |
# |
4 |
# Makefile for GXemul |
5 |
# |
6 |
|
7 |
CFLAGS=$(CWARNINGS) $(COPTIM) $(XDEF) $(XINCLUDE) |
8 |
BIN=gxemul |
9 |
LIBS=$(XLIB) $(OTHERLIBS) |
10 |
|
11 |
build: |
12 |
cd src; $(MAKE); cd .. |
13 |
$(CC) $(COPTIM) src/*.o src/devices/*.o $(LIBS) -o $(BIN) |
14 |
|
15 |
regtest: build |
16 |
cd tests; $(MAKE) run_tests; cd .. |
17 |
|
18 |
install: build |
19 |
@echo |
20 |
@echo "There is no automatic 'make install'. You need to manually copy the gxemul" |
21 |
@echo "binary and any other files you need to where you want them to reside. The man/" |
22 |
@echo "subdirectory contains a small man-page, it should probably be placed in" |
23 |
@echo "'/usr/.../man/man1' on most systems, and the contents of the doc/ subdirectory" |
24 |
@echo "could be placed in '/usr/.../share/doc/gxemul'." |
25 |
@echo |
26 |
|
27 |
clean: |
28 |
rm -f $(BIN) *core core.* *.gmon _* |
29 |
cd src; $(MAKE) clean; cd .. |
30 |
|
31 |
# Tests are not cleaned on a normal clean, only on a clean_all. |
32 |
|
33 |
clean_all: clean |
34 |
cd tests; $(MAKE) clean_all; cd .. |
35 |
rm -f config.h Makefile src/Makefile src/devices/Makefile src/devices/fonts/Makefile tests/Makefile |
36 |
|