[c5c522c] | 1 | include ../Makefile.config |
---|
| 2 | |
---|
| 3 | ######################################################################## |
---|
| 4 | # Modify these variables to fit your system. |
---|
| 5 | ######################################################################## |
---|
| 6 | |
---|
| 7 | ##################### Serial device |
---|
| 8 | # This should be whatever your display is connected to. |
---|
| 9 | # "make install" will create a link from /dev/lcd to DEVICE |
---|
| 10 | DEVICE = /dev/ttyS0 |
---|
| 11 | |
---|
| 12 | ##################### Operating System |
---|
| 13 | # Uncomment the line for your OS. |
---|
| 14 | OS=-DLINUX |
---|
| 15 | #OS=-DIRIX |
---|
| 16 | |
---|
| 17 | ##################### Modescreen Options |
---|
| 18 | |
---|
| 19 | ##### Load Screen |
---|
| 20 | # Max: Load Avg at which the backlight will start blinking |
---|
| 21 | MISC += -DLOAD_MAX=1.3 |
---|
| 22 | # Min: Load Avg at which the backlight will turn off (asleep) |
---|
| 23 | MISC += -DLOAD_MIN=0.05 |
---|
| 24 | |
---|
| 25 | ##### Filesystems to display stats for... (comment out ones you don't want) |
---|
| 26 | # NFS (Network File System) |
---|
| 27 | MISC += -DSTAT_NFS |
---|
| 28 | # SMBFS (Samba filesystem -- Windows drives) |
---|
| 29 | MISC += -DSTAT_SMBFS |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | ##################### Drivers |
---|
| 33 | # Comment out each section you don't want. |
---|
| 34 | |
---|
| 35 | # Matrix-Orbital displays |
---|
| 36 | DRIVERS += -DMTXORB_DRV |
---|
| 37 | OBJ += MtxOrb.o |
---|
| 38 | |
---|
| 39 | # Curses text-based output |
---|
| 40 | DRIVERS += -DCURSES_DRV |
---|
| 41 | OBJ += curses_drv.o |
---|
| 42 | LIB += -lncurses |
---|
| 43 | |
---|
| 44 | # Regular text output (ugly) |
---|
| 45 | DRIVERS += -DTEXT_DRV |
---|
| 46 | OBJ += text.o |
---|
| 47 | |
---|
| 48 | # Debugging output (very ugly) |
---|
| 49 | DRIVERS += -DDEBUG_DRV |
---|
| 50 | OBJ += debug.o |
---|
| 51 | |
---|
| 52 | # HD44780 parallel port lcd displays |
---|
| 53 | #DRIVERS += -DHD44780_DRV |
---|
| 54 | #OBJ += hd44780.o |
---|
| 55 | # Pick one of the following ports to use |
---|
| 56 | #LPTPORT = 0x378 |
---|
| 57 | #LPTPORT = 0x278 |
---|
| 58 | #LPTPORT = 0x3bc |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | ######################################################################## |
---|
| 63 | # You shouldn't need to touch anything below here. |
---|
| 64 | ######################################################################## |
---|
| 65 | |
---|
| 66 | #GCC = gcc -Wall -Wp,-lang-c-c++-comments -O6 |
---|
| 67 | #OBJ += main.o mode.o lcd.o sockets.o config.o drv_base.o |
---|
| 68 | #MISC += $(OS) $(DRIVERS) |
---|
| 69 | #VERSION = 0.4 |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | ################################################################### |
---|
| 73 | # Compilation... |
---|
| 74 | # |
---|
| 75 | #MISC=-DCURSES_DRV -g -DDEBUG |
---|
| 76 | |
---|
| 77 | test: |
---|
| 78 | $(GCC) -c $(MISC) menutest.c |
---|
| 79 | $(GCC) -c $(MISC) lcd.c |
---|
| 80 | $(GCC) -c $(MISC) menu.c |
---|
| 81 | $(GCC) -c $(MISC) drivers/curses_drv.c |
---|
| 82 | $(GCC) -c $(MISC) drivers/drv_base.c |
---|
| 83 | $(GCC) -o menutest curses_drv.o menutest.o lcd.o drv_base.o menu.o -lncurses |
---|
| 84 | |
---|
| 85 | test2: |
---|
| 86 | $(GCC) -c $(MISC) LL.c |
---|
| 87 | $(GCC) -c $(MISC) LL_test.c |
---|
| 88 | $(GCC) -o LL_test LL_test.o LL.o |
---|
| 89 | |
---|
| 90 | test3: |
---|
| 91 | $(GCC) -c $(MISC) config.c |
---|
| 92 | $(GCC) -c $(MISC) config_test.c |
---|
| 93 | $(GCC) -o config_test config.o config_test.o |
---|
| 94 | |
---|
| 95 | driver_test: |
---|
| 96 | $(GCC) -g -c $(MISC) drv_test.c |
---|
| 97 | $(GCC) -g -o drv_test drv_test.o ../server/drivers/libLCDdrivers.a \ |
---|
| 98 | ../shared/libLCDstuff.a -lncurses |
---|
| 99 | |
---|
| 100 | socktest: |
---|
| 101 | # $(GCC) -g -c $(MISC) socktest.c |
---|
| 102 | # $(GCC) -g -o st socktest.o ../server/drivers/libLCDdrivers.a \ |
---|
| 103 | # ../shared/libLCDstuff.a -lncurses |
---|
| 104 | $(GCC) -c $(MISC) srvtest.c |
---|
| 105 | $(GCC) -c $(MISC) ../server/sock.c |
---|
| 106 | $(GCC) $(MISC) -o srv srvtest.o ../server/*.o \ |
---|
| 107 | ../server/drivers/libLCDdrivers.a \ |
---|
| 108 | ../shared/libLCDstuff.a -lncurses |
---|
| 109 | |
---|
| 110 | |
---|
| 111 | |
---|
| 112 | |
---|
| 113 | |
---|
| 114 | ################################################################## |
---|
| 115 | # Installation |
---|
| 116 | # |
---|
| 117 | install: |
---|
| 118 | @echo Nothing to install in tests... |
---|
| 119 | |
---|
| 120 | ################################################################## |
---|
| 121 | # Other stuff... |
---|
| 122 | # |
---|
| 123 | clean: |
---|
| 124 | rm -f *.o core *~ |
---|
| 125 | |
---|
| 126 | edit: |
---|
| 127 | emacs . & |
---|
| 128 | |
---|