File: Makefile

package info (click to toggle)
autopilot 1.21-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 76 kB
  • ctags: 22
  • sloc: ansic: 88; makefile: 57
file content (29 lines) | stat: -rw-r--r-- 691 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
CC	= gcc
LD	= gcc

# for debug
#CFLAGS	= -Wall -g
#LDFLAGS = -N

PALMDEVICE="/dev/palm"
# allow maintainers to customize the device name

# for production code
CFLAGS	= -Wall -O3 -fomit-frame-pointer

autopilot:	autopilot.o
	$(LD) $(LDFLAGS) -o autopilot autopilot.o

autopilot.o: autopilot.c
	$(CC) $(CFLAGS) -c autopilot.c -DPALMDEVICE=\"$(PALMDEVICE)\"

install: autopilot
	install -m 555 autopilot /usr/local/bin/autopilot
	install -m 444 autopilot.1 /usr/local/man/man1/autopilot.1

clean:
	$(RM) autopilot autopilot.o core *~

dist:	autopilot.c Makefile autopilot.1 README
	$(RM) autopilot autopilot.o core autopilot-1.0.tar.gz *~
	cd .. ; tar -czvf autopilot-1.0.tar.gz autopilot-1.0