forked from hessu/bchunk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (29 loc) · 710 Bytes
/
Makefile
File metadata and controls
39 lines (29 loc) · 710 Bytes
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
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) -c $<
clean:
rm -f *.o *~ *.bak core
distclean: clean
rm -f bchunk
install: installbin installman
installbin:
$(INSTALL) -m 755 -s -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) -o bchunk $(BITS) $(LDFLAGS)
bchunk.o: bchunk.c