source: npl/mediabox/lcdproc_edwin/src/tests/Makefile

Last change on this file was c5c522c, checked in by Edwin Eefting <edwin@datux.nl>, 8 years ago

initial commit, transferred from cleaned syn3 svn tree

  • Property mode set to 100644
File size: 3.1 KB
Line 
1include ../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
10DEVICE = /dev/ttyS0
11
12##################### Operating System
13# Uncomment the line for your OS.
14OS=-DLINUX
15#OS=-DIRIX
16
17##################### Modescreen Options
18
19##### Load Screen
20# Max:  Load Avg at which the backlight will start blinking
21MISC += -DLOAD_MAX=1.3
22# Min:  Load Avg at which the backlight will turn off (asleep)
23MISC += -DLOAD_MIN=0.05
24
25##### Filesystems to display stats for... (comment out ones you don't want)
26# NFS (Network File System)
27MISC += -DSTAT_NFS
28# SMBFS (Samba filesystem -- Windows drives)
29MISC += -DSTAT_SMBFS
30
31
32##################### Drivers
33# Comment out each section you don't want.
34
35# Matrix-Orbital displays
36DRIVERS += -DMTXORB_DRV
37OBJ += MtxOrb.o
38
39# Curses text-based output
40DRIVERS += -DCURSES_DRV
41OBJ += curses_drv.o
42LIB += -lncurses
43
44# Regular text output (ugly)
45DRIVERS += -DTEXT_DRV
46OBJ += text.o
47
48# Debugging output (very ugly)
49DRIVERS += -DDEBUG_DRV
50OBJ += 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
77test:
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
85test2:
86        $(GCC) -c $(MISC) LL.c
87        $(GCC) -c $(MISC) LL_test.c
88        $(GCC) -o LL_test LL_test.o LL.o
89
90test3:
91        $(GCC) -c $(MISC) config.c
92        $(GCC) -c $(MISC) config_test.c
93        $(GCC) -o config_test config.o config_test.o
94
95driver_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
100socktest:
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#
117install:
118        @echo Nothing to install in tests...
119
120##################################################################
121# Other stuff...
122#
123clean:
124        rm -f *.o core *~
125
126edit:
127        emacs . &
128
Note: See TracBrowser for help on using the repository browser.