File: Makefile

package info (click to toggle)
xchain 1.0.1-9
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 176 kB
  • ctags: 98
  • sloc: ansic: 1,201; makefile: 37; sh: 22
file content (24 lines) | stat: -rw-r--r-- 375 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
DESTDIR = /
# This is so dpkg-buildpackage can build in the correct dir

CC=gcc
CFLAGS += -O2 -Wall -fPIE

OBJS=		xchain.o

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

all:		xchain

LDFLAGS += -pie

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

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

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