File: Makefile

package info (click to toggle)
bchunk 1.2.2-2
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 172 kB
  • sloc: ansic: 376; makefile: 104
file content (39 lines) | stat: -rw-r--r-- 720 bytes parent folder | download
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
34
35
36
37
38
39
all: bchunk

# For systems with GCC (Linux, and others with GCC installed):
CC = gcc
LD = gcc
CFLAGS += -Wall -Wstrict-prototypes -O2

# For systems with a legacy CC:
#CC = cc
#LD = cc
#CFLAGS = -O

# For BSD install: Which install to use and where to put the files
INSTALL = install
PREFIX  = /usr/local
BIN_DIR = $(PREFIX)/bin
MAN_DIR = $(PREFIX)/man

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

clean:
	rm -f *.o *~ *.bak core
distclean: clean
	rm -f bchunk

install: installbin installman
installbin:
	$(INSTALL) -m 755 -o root -g root bchunk		$(BIN_DIR)
installman:
	$(INSTALL) -m 644 -o bin -g bin bchunk.1	 	$(MAN_DIR)/man1

BITS = bchunk.o

bchunk: $(BITS)
	$(LD) $(LDFLAGS) -o bchunk $(BITS)

bchunk.o:	bchunk.c