blob: 86dcce4377133e9728e7ca4291122925a0e899b0 (
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
|
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 -DG_LOG_DOMAIN=\"meego-im-common\"
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
|