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