-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 733 Bytes
/
Makefile
File metadata and controls
38 lines (26 loc) · 733 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
srcdir = .
CC = gcc
OBJS = bmp.o
LIBS = libbmp.so.0.0
#----------------------------------------------------------------------
# Rules Section
#----------------------------------------------------------------------
all: libbmp
.PHONY: all clean cleanbin dep
libbmp: bmp.o
$(CC) -shared -Wl,-soname,libbmp.so.0 \
-o libbmp.so.0.0 bmp.o
bmp.o: bmp.c bmp.h
$(CC) -fPIC -ggdb -Wall -ansi -pedantic -c -I/usr/local/include bmp.c
clean: cleanbin
rm -f .depend *~
cleanbin:
rm -f $(OBJS) libbmp.so*
dep:
.depend:
install:
install -g users -m 644 libbmp.so.0.0 /usr/local/lib
install -g users -m 644 bmp.h /usr/local/include
cd /usr/local/lib
ln -sf libbmp.so.0.0 libbmp.so.0
ln -sf libbmp.so.0.0 libbmp.so