Lines 18-25
Link Here
|
18 |
LIBGPEWIDGET_PC = libgpewidget |
18 |
LIBGPEWIDGET_PC = libgpewidget |
19 |
endif |
19 |
endif |
20 |
|
20 |
|
|
|
21 |
ifeq ($(IN_LIBGPEWIDGET),) |
21 |
GPECFLAGS = $(shell $(PC_EXTRA) pkg-config --cflags $(LIBGPEWIDGET_PC)) |
22 |
GPECFLAGS = $(shell $(PC_EXTRA) pkg-config --cflags $(LIBGPEWIDGET_PC)) |
22 |
GPELIBS = $(shell $(PC_EXTRA) pkg-config --libs $(LIBGPEWIDGET_PC)) |
23 |
GPELIBS = $(shell $(PC_EXTRA) pkg-config --libs $(LIBGPEWIDGET_PC)) |
|
|
24 |
endif |
23 |
|
25 |
|
24 |
GTKCFLAGS = $(shell pkg-config --cflags gtk+-2.0) |
26 |
GTKCFLAGS = $(shell pkg-config --cflags gtk+-2.0) |
25 |
GTKLIBS = $(shell pkg-config --libs gtk+-2.0) |
27 |
GTKLIBS = $(shell pkg-config --libs gtk+-2.0) |
Lines 28-43
Link Here
|
28 |
STANDARD_CFLAGS = -MD -Wall |
30 |
STANDARD_CFLAGS = -MD -Wall |
29 |
|
31 |
|
30 |
ifeq ($(DEBUG),yes) |
32 |
ifeq ($(DEBUG),yes) |
31 |
STANDARD_CFLAGS += -O2 -g |
33 |
CFLAGS += -O2 -g |
32 |
STANDARD_LDFLAGS = -g |
34 |
LDFLAGS = -g |
33 |
else |
35 |
else |
34 |
STANDARD_CFLAGS += -Os -fomit-frame-pointer |
36 |
CFLAGS += -Os -fomit-frame-pointer |
35 |
endif |
37 |
endif |
36 |
|
38 |
|
37 |
dist: check-source clean dist-prep |
39 |
dist: check-source clean dist-prep |
38 |
rm -rf ../$(PACKAGE)-$(VERSION) |
40 |
rm -rf ../$(PACKAGE)-$(VERSION) |
39 |
mkdir ../$(PACKAGE)-$(VERSION) |
41 |
mkdir ../$(PACKAGE)-$(VERSION) |
40 |
( tar cf - --exclude "*/CVS" --exclude CVS --exclude "*~" --exclude "#*#" --exclude "debian" --exclude ".*" --exclude "*.ipk" --exclude "*.ipk.*" --exclude "*.mo" --exclude "*.d" --exclude "*.batch" --exclude "translation-ipkgs.txt" * ) | (cd ../$(PACKAGE)-$(VERSION); tar xf -) |
42 |
( tar cf - --exclude "*/CVS" --exclude CVS --exclude "*~" --exclude "#*#" --exclude "debian" --exclude ".*" --exclude "*.ipk" --exclude "*.ipk.*" --exclude "*.mo" --exclude "*.batch" --exclude "translation-ipkgs.txt" * ) | (cd ../$(PACKAGE)-$(VERSION); tar xf -) |
41 |
( cd ../$(PACKAGE)-$(VERSION); mkdir build; cp $(BUILD)/Makefile.dpkg_ipkg $(BUILD)/Makefile.translation build/ ; sed 's:^CVSBUILD.*:CVSBUILD = no:' < Makefile > Makefile.new; mv Makefile.new Makefile ) |
43 |
( cd ../$(PACKAGE)-$(VERSION); mkdir build; cp $(BUILD)/Makefile.dpkg_ipkg $(BUILD)/Makefile.translation build/ ; sed 's:^CVSBUILD.*:CVSBUILD = no:' < Makefile > Makefile.new; mv Makefile.new Makefile ) |
42 |
( cd .. ; tar cf - $(PACKAGE)-$(VERSION) | gzip -9 >$(PACKAGE)-$(VERSION).tar.gz ) |
44 |
( cd .. ; tar cf - $(PACKAGE)-$(VERSION) | gzip -9 >$(PACKAGE)-$(VERSION).tar.gz ) |
43 |
rm -rf ../$(PACKAGE)-$(VERSION) |
45 |
rm -rf ../$(PACKAGE)-$(VERSION) |
Lines 53-60
Link Here
|
53 |
|
55 |
|
54 |
install: install-program install-mo |
56 |
install: install-program install-mo |
55 |
|
57 |
|
|
|
58 |
clean-dist: |
59 |
rm -rf familiar/dist familiar/dist.list |
60 |
|
61 |
clean: clean-dist |
62 |
|
56 |
check-source: |
63 |
check-source: |
57 |
@if ! grep -q '^Source:' familiar/$(CONTROL); then echo -e "\nNo Source: field in control file. Aborting.\n"; exit 1; fi |
64 |
@if [ -e familiar ] && ! grep -q '^Source:' familiar/$(CONTROL); then echo -e "\nNo Source: field in control file. Aborting.\n"; exit 1; fi |
58 |
|
65 |
|
59 |
ipkg: check-source ipkg-prep clean |
66 |
ipkg: check-source ipkg-prep clean |
60 |
rm -rf familiar/dist |
67 |
rm -rf familiar/dist |
Lines 68-76
Link Here
|
68 |
$(MAKE) DESTDIR=`pwd`/familiar/dist PREFIX=/usr prefix=/usr DEBUG=no install-program |
75 |
$(MAKE) DESTDIR=`pwd`/familiar/dist PREFIX=/usr prefix=/usr DEBUG=no install-program |
69 |
rm -rf familiar/dist.list |
76 |
rm -rf familiar/dist.list |
70 |
ipkg-build -o 0 -g 0 familiar/dist | sed 's/^Packaged .*into //; t 1; d; : 1; s:.*/::' >> familiar/dist.list |
77 |
ipkg-build -o 0 -g 0 familiar/dist | sed 's/^Packaged .*into //; t 1; d; : 1; s:.*/::' >> familiar/dist.list |
71 |
rm -f |
|
|
72 |
if [ "x$(LINGUAS)" != "x" ]; then make translation-ipkg; tr ' ' '\n' < translation-ipkgs.txt >> familiar/dist.list; fi |
78 |
if [ "x$(LINGUAS)" != "x" ]; then make translation-ipkg; tr ' ' '\n' < translation-ipkgs.txt >> familiar/dist.list; fi |
73 |
md5sum `cat familiar/dist.list` > $(PACKAGE)_$(VERSION).batch |
79 |
md5sum `cat familiar/dist.list` > $(PACKAGE)_$(VERSION).batch |
|
|
80 |
rm -rf familiar/dist familiar/dist.list |
74 |
$(MAKE) printinfo |
81 |
$(MAKE) printinfo |
75 |
|
82 |
|
76 |
dpkg: dist |
83 |
dpkg: dist |
Lines 102-104
Link Here
|
102 |
|
109 |
|
103 |
%.pc: %.pc.in |
110 |
%.pc: %.pc.in |
104 |
sed 's:PREFIX:$(PREFIX):;s:BUILDDIR:$(shell pwd):;s:VERSION:$(VERSION):' < $< > $@ |
111 |
sed 's:PREFIX:$(PREFIX):;s:BUILDDIR:$(shell pwd):;s:VERSION:$(VERSION):' < $< > $@ |
|
|
112 |
|
113 |
.c.o:; |
114 |
$(CC) $(CFLAGS) $(CPPFLAGS) $(PACKAGE_CFLAGS) $(PACKAGE_CPPFLAGS) -c $< -o $@ |