summaryrefslogtreecommitdiff
path: root/meego/Makefile
blob: 4992cad3d82c10efd6dfa1d1f5271c0ae8db6d05 (plain)
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
CFLAGS?=-g -O0 -Wall
LDFLAGS?=-Wl,-O1

MEEGOIMCOMMON_TARGET:=libmeego-im-common.a

MEEGOIMCOMMON_OBJS:=meego-im-connector.o meego-imcontext-dbus.o meego-im-proxy.o \
	qt-keysym-map.o qt-translate.o
MEEGOIMCOMMON_PKGCONFIG:=x11 dbus-glib-1 QtCore QtGui
MEEGOIMCOMMON_CFLAGS:=$(shell pkg-config --cflags $(MEEGOIMCOMMON_PKGCONFIG)) -DQT_NO_KEYWORDS -std=c99
MEEGOIMCOMMON_CXXFLAGS:=$(shell pkg-config --cflags $(MEEGOIMCOMMON_PKGCONFIG))

all: $(MEEGOIMCOMMON_TARGET)

$(MEEGOIMCOMMON_TARGET): $(MEEGOIMCOMMON_OBJS)
	ar rcs $@ $^

%.o: %.c
	$(CC) $(MEEGOIMCOMMON_CFLAGS) $(CFLAGS) -o $@ -c $<

%.o: %.cpp
	$(CXX) $(MEEGOIMCOMMON_CXXFLAGS) $(CFLAGS) -o $@ -c $<

clean:
	rm -f $(MEEGOIMCOMMON_TARGET) *.o

.PHONY: all clean