File: Makefile

package info (click to toggle)
xchain 1.0.1-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 68 kB
  • ctags: 35
  • sloc: ansic: 401; makefile: 63; sh: 23
file content (33 lines) | stat: -rw-r--r-- 592 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
30
31
32
33
DESTDIR = /
# This is so dpkg-buildpackage can build in the correct dir

CC=gcc
CFLAGS=-Wall

### Debian-only hack
### "debug" support
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
# compile with debugging information and don't optimize
CFLAGS += -g
else
# compile without debugging information and do optimize
CFLAGS += -O2
endif
### end of Debian-only hack

OBJS=		xchain.o

.c.o:
		$(CC) -c $(CFLAGS) $<

all:		xchain

xchain:	$(OBJS)
		$(CC) -o xchain $(CFLAGS) $(OBJS)
		chmod 0755 xchain

install:	xchain
		./install.sh $(DESTDIR)

clean:
		rm -f *.o *~ core *.bak ./xchain ./build