1 |
# |
# |
2 |
# $Id: Makefile.skel,v 1.42 2006/05/17 18:07:17 debug Exp $ |
# $Id: Makefile.skel,v 1.46 2007/02/07 19:50:30 debug Exp $ |
3 |
# |
# |
4 |
# Makefile for GXemul |
# Makefile for GXemul |
5 |
# |
# |
12 |
|
|
13 |
build: |
build: |
14 |
cd src; $(MAKE); cd .. |
cd src; $(MAKE); cd .. |
15 |
$(CC) $(COPTIM) src/*.o src/cpus/*.o src/debugger/*.o src/devices/*.o src/machines/*.o src/promemul/*.o $(LIBS) -o $(BIN) |
$(CC) $(COPTIM) src/*.o src/cpus/*.o src/debugger/*.o src/devices/*.o src/machines/*.o src/native/*.o src/net/*.o src/promemul/*.o $(LIBS) -o $(BIN) |
16 |
|
|
17 |
docs: |
install: build |
|
cd doc; $(MAKE); cd .. |
|
|
|
|
|
install: build docs |
|
18 |
@echo |
@echo |
19 |
@echo "There is no automatic 'make install'. You need to manually copy the gxemul" |
@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/" |
@echo "binary and any other files you need to where you want them to reside. The man/" |
26 |
clean: |
clean: |
27 |
rm -f $(BIN) *core core.* *.gmon _* *.exe |
rm -f $(BIN) *core core.* *.gmon _* *.exe |
28 |
cd src; $(MAKE) clean; cd .. |
cd src; $(MAKE) clean; cd .. |
|
cd doc; $(MAKE) clean; cd .. |
|
29 |
|
|
30 |
# experiments and demos are not cleaned on a normal clean, only on a clean_all. |
# experiments and demos are not cleaned on a normal clean, only on a clean_all. |
31 |
|
|
33 |
cd experiments; $(MAKE) clean_all; cd .. |
cd experiments; $(MAKE) clean_all; cd .. |
34 |
cd demos; $(MAKE) clean; cd .. |
cd demos; $(MAKE) clean; cd .. |
35 |
rm -f config.h Makefile src/Makefile src/cpus/Makefile |
rm -f config.h Makefile src/Makefile src/cpus/Makefile |
36 |
rm -f src/debugger/Makefile |
rm -f src/debugger/Makefile src/devices/Makefile |
37 |
rm -f src/devices/Makefile src/devices/fonts/Makefile |
rm -f src/devices/fonts/Makefile src/machines/Makefile |
38 |
rm -f src/machines/Makefile doc/Makefile |
rm -f src/native/Makefile src/net/Makefile |
39 |
rm -f src/promemul/Makefile src/include/Makefile |
rm -f src/promemul/Makefile src/include/Makefile |