-
Notifications
You must be signed in to change notification settings - Fork 0
/
Config_parser.mak
60 lines (36 loc) · 1.4 KB
/
Config_parser.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
#makefile - Config_parser
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=Config_parser
.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= \
Config_parser.c \
Config_parser.def
HEADER_FILES= \
Config_parser.h
RESOURCE_FILES= \
./res/Config_parser.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)