-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathMakefile.patch
50 lines (40 loc) · 1.22 KB
/
Makefile.patch
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
40
41
42
43
44
45
46
47
48
49
50
--- cogito-0.12.1/Makefile 2005-07-11 17:49:04.000000000 -0700
+++ cogito/Makefile 2005-07-17 22:19:34.382267000 -0700
@@ -29,6 +29,9 @@
# DEFINES += -DUSE_STDEV
+CPPFLAGS=
+LDFLAGS=
+
CFLAGS?=-g -O2
CFLAGS+=-Wall $(DEFINES)
@@ -126,7 +129,7 @@
endif
endif
-CFLAGS += '-DSHA1_HEADER=$(SHA1_HEADER)'
+CFLAGS += $(CPPFLAGS) '-DSHA1_HEADER=$(SHA1_HEADER)'
.PHONY: all git cogito
all: git cogito
@@ -143,7 +146,7 @@
$(CC) $(CFLAGS) -o $@ test-date.c date.o
git-%: %.o $(LIB_FILE)
- $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) $(LIBS)
+ $(CC) $(CFLAGS) -o $@ $(filter %.o,$^) $(LDFLAGS) $(LIBS)
git-rev-list: LIBS += -lssl
git-http-pull: LIBS += -lcurl
@@ -190,7 +193,7 @@
doc:
$(MAKE) -C Documentation/ all
-sedlibdir=$(shell echo $(libdir) | sed 's/\//\\\//g')
+sedlibdir=$(shell echo "%OPTWARE_TARGET_PREFIX%/lib/cogito" | sed 's/\//\\\//g')
.PHONY: install install-git install-cogito
install: install-git install-cogito
@@ -217,6 +220,10 @@
cat $$file.new > $$file; rm $$file.new; \
done
+install-strip: install
+ for p in $(PROG); do $(STRIP) $(DESTDIR)$(bindir)/$$p; done
+
+
uninstall:
cd $(DESTDIR)$(bindir) && rm -f $(PROG) $(SCRIPTS) $(SCRIPT) $(GEN_SCRIPT)
cd $(DESTDIR)$(libdir) && rm -f $(LIB_SCRIPT)