/[gxemul]/trunk/Makefile.skel
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/Makefile.skel

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2 by dpavlin, Mon Oct 8 16:17:48 2007 UTC revision 36 by dpavlin, Mon Oct 8 16:21:34 2007 UTC
# Line 1  Line 1 
1  #  #
2  #  $Id: Makefile.skel,v 1.25 2005/03/05 11:18:31 debug Exp $  #  $Id: Makefile.skel,v 1.47 2007/03/16 14:13:59 debug Exp $
3  #  #
4  #  Makefile for GXemul  #  Makefile for GXemul
5  #  #
# Line 8  CFLAGS=$(CWARNINGS) $(COPTIM) $(XDEF) $( Line 8  CFLAGS=$(CWARNINGS) $(COPTIM) $(XDEF) $(
8  BIN=gxemul  BIN=gxemul
9  LIBS=$(XLIB) $(OTHERLIBS)  LIBS=$(XLIB) $(OTHERLIBS)
10    
11  all: $(BIN)  all: build
12    
13  $(BIN): do_src do_devices  build:
         $(CC) $(COPTIM) src/*.o devices/*.o $(LIBS) -o $(BIN)  
   
 do_src:  
14          cd src; $(MAKE); cd ..          cd src; $(MAKE); cd ..
15            $(CC) $(COPTIM) src/*.o src/cpus/*.o src/debugger/*.o src/devices/*.o src/disk/*.o src/machines/*.o src/native/*.o src/net/*.o src/promemul/*.o $(LIBS) -o $(BIN)
16    
17  do_devices:  install: build
         cd devices; $(MAKE); cd ..  
   
 regtest: gxemul  
         cd tests; $(MAKE) run_tests; cd ..  
   
 install: all  
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/"
# Line 32  install: all Line 24  install: all
24          @echo          @echo
25    
26  clean:  clean:
27          rm -f $(BIN) *core core.* *.gmon _*          rm -f $(BIN) *core core.* *.gmon _* *.exe
28          cd src; $(MAKE) clean; cd ..          cd src; $(MAKE) clean; cd ..
         cd devices; $(MAKE) clean; cd ..  
29    
30  #  Tests 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    
32  clean_all: clean  clean_all: clean
33          cd tests; $(MAKE) clean_all; cd ..          cd experiments; $(MAKE) clean_all; cd ..
34          cd devices; $(MAKE) clean_all; cd ..          cd demos; $(MAKE) clean; cd ..
35          rm -f config.h Makefile src/Makefile devices/Makefile tests/Makefile          rm -f config.h Makefile src/Makefile src/cpus/Makefile
36            rm -f src/debugger/Makefile src/devices/Makefile
37            rm -f src/devices/fonts/Makefile src/disk/Makefile src/machines/Makefile
38            rm -f src/native/Makefile src/net/Makefile
39            rm -f src/promemul/Makefile src/include/Makefile

Legend:
Removed from v.2  
changed lines
  Added in v.36

  ViewVC Help
Powered by ViewVC 1.1.26