-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile.autosar-swc
43 lines (35 loc) · 1.07 KB
/
Makefile.autosar-swc
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
# WindRiver Diab Compiler
CC := dcc
CXX := dcc
LD := dld
AS := das
AR := dar
RM := rm
INCLUDES := -Isrc/platforms/autosar-swc -Isrc -Iplatforms/autosar-os
CFLAGS := -tPPCVLEES:simple -g -XO -Xrtti-off -Xexceptions-off -ew4265 -ew4504
LDFLAGS :=
LIB_DIR := libs/autosar-swc
SRCS = src/mindroid/os/Handler.cpp \
src/mindroid/os/Message.cpp \
src/mindroid/os/MessageQueue.cpp \
src/mindroid/os/RunnableQueue.cpp \
src/mindroid/os/Process.cpp \
src/mindroid/util/Assert.cpp \
src/mindroid/util/Log.cpp \
src/mindroid/util/Logger.cpp \
src/platforms/autosar-swc/mindroid/os/Looper.cpp \
src/platforms/autosar-swc/mindroid/os/SystemClock.cpp \
src/platforms/autosar-swc/mindroid/util/concurrent/locks/Condition.cpp \
src/platforms/autosar-swc/mindroid/util/concurrent/locks/Lock.cpp
OBJS = $(SRCS:.cpp=.o)
LIB_OBJS = $(addprefix $(LIB_DIR)/,$(OBJS))
Mindroid.ecpp = $(LIB_DIR)/libmindroid.a
.PHONY: clean
all: $(Mindroid.ecpp)
$(Mindroid.ecpp): $(LIB_OBJS)
$(AR) -r $@ $^
$(LIB_DIR)/%.o: %.cpp
@mkdir -p $(@D)
$(CXX) $(CFLAGS) $(INCLUDES) -c $< -o $@
clean:
$(RM) -rf $(LIB_DIR)