/[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 3 by dpavlin, Mon Oct 8 16:17:48 2007 UTC revision 4 by dpavlin, Mon Oct 8 16:18:00 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.28 2005/04/15 22:28:42 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)  build:
   
 $(BIN): do_src do_devices  
         $(CC) $(COPTIM) src/*.o devices/*.o $(LIBS) -o $(BIN)  
   
 do_src:  
12          cd src; $(MAKE); cd ..          cd src; $(MAKE); cd ..
13            $(CC) $(COPTIM) src/*.o src/devices/*.o $(LIBS) -o $(BIN)
14    
15  do_devices:  regtest: build
         cd devices; $(MAKE); cd ..  
   
 regtest: gxemul  
16          cd tests; $(MAKE) run_tests; cd ..          cd tests; $(MAKE) run_tests; cd ..
17    
18  install: all  install: build
19          @echo          @echo
20          @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"
21          @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 34  install: all Line 27  install: all
27  clean:  clean:
28          rm -f $(BIN) *core core.* *.gmon _*          rm -f $(BIN) *core core.* *.gmon _*
29          cd src; $(MAKE) clean; cd ..          cd src; $(MAKE) clean; cd ..
         cd devices; $(MAKE) clean; cd ..  
30    
31  #  Tests are not cleaned on a normal clean, only on a clean_all.  #  Tests are not cleaned on a normal clean, only on a clean_all.
32    
33  clean_all: clean  clean_all: clean
34          cd tests; $(MAKE) clean_all; cd ..          cd tests; $(MAKE) clean_all; cd ..
35          cd devices; $(MAKE) clean_all; cd ..          rm -f config.h Makefile src/Makefile src/devices/Makefile src/devices/fonts/Makefile tests/Makefile
         rm -f config.h Makefile src/Makefile devices/Makefile tests/Makefile  
36    

Legend:
Removed from v.3  
changed lines
  Added in v.4

  ViewVC Help
Powered by ViewVC 1.1.26