-
Notifications
You must be signed in to change notification settings - Fork 0
/
qrgp.mak
66 lines (39 loc) · 1.41 KB
/
qrgp.mak
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#makefile - qrgp
CC=armcc
CXX=armcpp
CXXFLAGS=$(CFLAGS)
CFLAGS+= -W -o0 -g -Ono-inline -I .\include;.\include\service;.\include\component;.\ResID;.\\.\src\app\widget;.\\.\src\app\launcher;.\\.\src\app\wallpaper;.\\.\src\app\screen_lock;.\\.\include\service;.\\.\include\component;.\\.\include\service;.\\.\src\framework;.\\.\src\framework\ui_core\base;.\\.\src\framework\ui_core\mvc;.\\.\src\framework\ui_core\pme;.\\.\src\framework\mmi_core;.\\.\src\ui_engine\vrt\interface;.\\.\src\component;.\\.\src\ui_engine\framework\xml;.\
LD=$(CXX) $(CXXFLAGS)
LDFLAGS=
LDFLAGS+=
LIBS+=-lodbc32 -lodbccp32 -lmrewin32 -lmsimg32
TARGET=qrgp
.PHONY: all
all: $(TARGET)
%.o: %.c
$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $<
%.o: %.cc
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
%.o: %.cpp
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
%.o: %.cxx
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c $<
%.res: %.rc
$(RC) $(CPPFLAGS) -o $@ -i $<
SOURCE_FILES= \
./qrcode_encoder.c \
qrgp.c \
qrgp.def
HEADER_FILES= \
./mre_def.h \
./qrcode_encoder.h \
qrgp.h
RESOURCE_FILES= \
./res/qrgp.res.xml
SRCS=$(SOURCE_FILES) $(HEADER_FILES) $(RESOURCE_FILES)
OBJS=$(patsubst %.cxx,%.o,$(patsubst %.cpp,%.o,$(patsubst %.cc,%.o,$(patsubst %.c,%.o,$(filter %.c %.cc %.cpp %.cxx ,$(SRCS))))))
$(TARGET): $(OBJS)
$(LD) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
.PHONY: clean
clean:
-rm -f $(OBJS) $(TARGET)