add sliderulez, an advanced RPN pocket calculator for Opie
[vuplus_openembedded] / packages / gpe-today / gpe-today-0.09 / makefile.patch
1 --- /tmp/Makefile       2005-09-01 17:07:30.218823872 +0200
2 +++ gpe-today-0.09/Makefile     2005-09-01 17:07:32.698446912 +0200
3 @@ -1,7 +1,7 @@
4  PACKAGE = gpe-today
5  PREFIX = /usr/local
6  VERSION = 0.09
7 -CVSBUILD = no
8 +CVSBUILD =no 
9  #DEBUG = yes
10  #EFENCE = yes
11  
12 @@ -9,28 +9,27 @@
13  
14  MEMBERS = main todo calendar date xsettings
15  
16 -GTKCFLAGS = `pkg-config --cflags gtk+-2.0`
17 -GTKLDFLAGS += `pkg-config --libs gtk+-2.0`
18 -
19 -CPPFLAGS = -I../libgpewidget -I../libeventdb -I../libtododb -I../libxsettings -I../libxsettings-client -D_GNU_SOURCE
20 -
21  ifeq ($(EFENCE),yes)
22 -LDFLAGS = -lefence
23 +PACKAGE_LDFLAGS = -lefence
24  endif
25  
26  ifeq ($(DEBUG),yes)
27 -CFLAGS = -g
28 +package_CFLAGS = -g
29  else
30 -CFLAGS = -Os -fomit-frame-pointer
31 +PACKAGE_CFLAGS = -Os -fomit-frame-pointer
32  endif
33  
34 -CFLAGS += -Wall $(GTKCFLAGS)
35 -LDFLAGS += $(GTKLDFLAGS) -L/usr/local/lib -L../libeventdb -leventdb -L../libtododb -ltododb -L../libxsettings -L../libxsettings-client -lXsettings-client -Wl,-rpath-link,../libxsettings -Wl,-rpath-link,../libgpepimc -Wl,-rpath-link,../libdisplaymigration
36 -CPPFLAGS += -DPACKAGE=\"$(PACKAGE)\" -DPREFIX=\"$(PREFIX)\" -DPACKAGE_LOCALE_DIR=\"$(PREFIX)/share/locale\"
37 -#CFLAGS += -MD
38 -
39  .SUFFIXES: .d
40  
41 +ifeq ($(CVSBUILD),yes)
42 +PACKAGE_CPPFLAGS += -I../libeventdb -I../libtododb -I../libxsettings -I../libxsettings-client -I../libdisplaymigration -I../libgpepimc
43 +PACKAGE_LDFLAGS += -L../libeventdb -L../libtododb -L../libxsettings-client -Wl,-rpath-link,../libxsettings -L../libgpepimc
44 +endif
45 +PACKAGE_CPPFLAGS += $(STANDARD_CPPFLAGS)
46 +PACKAGE_CFLAGS += $(STANDARD_CFLAGS) $(GPECFLAGS)
47 +PACKAGE_LDFLAGS += $(STANDARD_LDFLAGS) $(GPELIBS) -leventdb -ltododb -lXsettings-client -lsqlite -lgpepimc
48 +   
49 +
50  OBJS = $(patsubst %,%.o,$(MEMBERS))
51  DEPS = $(patsubst %,%.d,$(MEMBERS))
52  SOURCES = $(patsubst %,%.c,$(MEMBERS))
53 @@ -43,10 +42,10 @@
54  BUILD = build
55  endif
56  
57 -all: $(PACKAGE) all-mo
58 +all: $(PACKAGE)
59  
60  $(PACKAGE): $(OBJS)
61 -       $(CC) -o $@ $^ -L../libgpewidget -lgpewidget -lsqlite $(LDFLAGS)
62 +       $(CC) -o $@ $^ $(LDFLAGS) $(PACKAGE_LDFLAGS)
63  
64  install-program: all $(PACKAGE).desktop
65         for i in $(PIXMAPS); do install -D -m 644 pixmaps/$$i $(DESTDIR)$(PREFIX)/share/$(PACKAGE)/pixmaps/$$i; done