-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (27 loc) · 761 Bytes
/
Makefile
File metadata and controls
36 lines (27 loc) · 761 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
#
# Makefile
#
ROOT := .
include $(ROOT)/Common.mk
all: libscribble libscribble.a tool
libscribble:
$(MAKE) --dir=src
tool:
$(MAKE) --dir=src tool
updateversion:
utils/update-ver.sh
libscribble.a: libscribble
$(RM) $(LIB_DIR)/$@
$(AR) $(ARFLAGS) $(BUILD_DIR)/$@ $(BUILD_DIR)/*.o
$(CP) -v $(BUILD_DIR)/$@ $(LIB_DIR)/$@
install: libscribble libscribble.a tool
$(MKDIR) $(DESTDIR)/usr/include/scribble
$(MKDIR) $(DESTDIR)/usr/lib
$(MKDIR) $(DESTDIR)/usr/bin
$(INSTALL) $(INCLUDE_DIR)/scribble/*.h $(DESTDIR)/usr/include/scribble
$(INSTALL) $(BUILD_DIR)/*.so $(DESTDIR)/usr/lib
$(INSTALL) $(LIB_DIR)/*.a $(DESTDIR)/usr/lib
$(INSTALL) $(BIN_DIR)/* $(DESTDIR)/usr/bin
pkg-deb: all
dpkg-buildpackage -us -uc -rfakeroot
include $(ROOT)/Rules.mk