root/trunk/example/linux.mak
| Revision 3766, 1.7 kB (checked in by larsivi, 5 months ago) | |
|---|---|
| |
| Line | |
|---|---|
| 1 | # Makefile to build the examples of tango for Linux |
| 2 | # Designed to work with GNU make |
| 3 | # Targets: |
| 4 | # make |
| 5 | # Same as make all |
| 6 | # make all |
| 7 | # Build all examples |
| 8 | # |
| 9 | # make <executable-name> |
| 10 | # Build a specified example |
| 11 | # make clean |
| 12 | # remove all build examples |
| 13 | # |
| 14 | # |
| 15 | |
| 16 | # Relative path to the tango include dir |
| 17 | # This is where the tango tree is located |
| 18 | TANGO_DIR = .. |
| 19 | |
| 20 | # The build tool executable from dsource.org/projects/build |
| 21 | BUILDTOOL = bud |
| 22 | BUILDOPTS = -noautoimport -op -clean -full -g -debug -I$(TANGO_DIR) |
| 23 | |
| 24 | .PHONY: all clean |
| 25 | |
| 26 | # Standard target |
| 27 | all : |
| 28 | |
| 29 | # networking/httpserver \ |
| 30 | # networking/servlets \ |
| 31 | # networking/servletserver\ |
| 32 | |
| 33 | SIMPLE_EXAMPLES =\ |
| 34 | concurrency/fiber_test \ |
| 35 | conduits/FileBucket \ |
| 36 | conduits/composite \ |
| 37 | conduits/filebubbler \ |
| 38 | conduits/filecat \ |
| 39 | conduits/filecopy \ |
| 40 | conduits/fileops \ |
| 41 | conduits/filepathname \ |
| 42 | conduits/filescan \ |
| 43 | conduits/filescanregex \ |
| 44 | conduits/lineio \ |
| 45 | conduits/mmap \ |
| 46 | conduits/randomio \ |
| 47 | conduits/unifile \ |
| 48 | console/hello \ |
| 49 | console/stdout \ |
| 50 | logging/chainsaw \ |
| 51 | logging/logging \ |
| 52 | networking/homepage \ |
| 53 | networking/httpget \ |
| 54 | networking/sockethello \ |
| 55 | networking/socketserver \ |
| 56 | system/argparser \ |
| 57 | system/localtime \ |
| 58 | system/normpath \ |
| 59 | system/process \ |
| 60 | networking/selector \ |
| 61 | text/formatalign \ |
| 62 | text/formatindex \ |
| 63 | text/formatspec \ |
| 64 | text/localetime \ |
| 65 | text/token |
| 66 | |
| 67 | REFERENCE_EXAMPLES = \ |
| 68 | ./reference/chapter4 \ |
| 69 | ./reference/chapter11 |
| 70 | |
| 71 | $(SIMPLE_EXAMPLES) : % : %.d |
| 72 | @echo "Building : " $@ |
| 73 | $(BUILDTOOL) $< $(BUILDOPTS) -T$@ -unittest |
| 74 | |
| 75 | $(REFERENCE_EXAMPLES) : % : %.d |
| 76 | @echo "Building : " $@ |
| 77 | $(BUILDTOOL) $< $(BUILDOPTS) -T$@ |
| 78 | |
| 79 | all : $(SIMPLE_EXAMPLES) |
| 80 | |
| 81 | clean : |
| 82 | @echo "Removing all examples" |
| 83 | rm -f $(SIMPLE_EXAMPLES) $(REFERENCE_EXAMPLES) |
| 84 | rm -f conduits/random.bin |
Note: See TracBrowser for help on using the browser.












