emsApplication/applications/library/libopdb/Makefile.arm

51 lines
1015 B
Makefile
Raw Normal View History

2024-05-24 12:19:45 +08:00
######################################
#
######################################
#source file
<>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.c<><63>.cpp<70>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EAB6A8>Ϊͬ<CEAA><CDAC>.o<>ļ<EFBFBD>
SOURCE := $(wildcard *.c) $(wildcard *.cpp)
OBJS := $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(SOURCE)))
#target you can change test to what you want
#Ŀ<><C4BF><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><D2AA>ִ<EFBFBD><D6B4><EFBFBD>ļ<EFBFBD><C4BC><EFBFBD>
TARGET := libopdb.so
#compile and lib parameter
#<23><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
CC := arm-gcc
CXX := arm-g++
LIBS := -L/usr/local/arm/lib -lhv -lsqlite3 -lpthread -ldl
LDFLAGS :=
DEFINES :=
INCLUDE := -I. -I/usr/local/arm/include
CFLAGS := -fpic -shared -Wall -O3 $(DEFINES) $(INCLUDE) -std=c++11
CXXFLAGS:= $(CFLAGS)
#i think you should do anything here
#<23><><EFBFBD><EFBFBD><EFBFBD>Ļ<EFBFBD><C4BB><EFBFBD><EFBFBD>ϲ<EFBFBD><CFB2><EFBFBD>Ҫ<EFBFBD><D2AA><EFBFBD>κθĶ<CEB8><C4B6><EFBFBD>
.PHONY : everything objs clean veryclean rebuild
everything : $(TARGET)
all : $(TARGET)
objs : $(OBJS)
rebuild: veryclean everything
clean :
rm -fr *.so
rm -fr *.o
veryclean : clean
rm -fr $(TARGET)
$(TARGET) : $(OBJS)
$(CC) $(CXXFLAGS) -o $@ $(OBJS) $(LDFLAGS) $(LIBS)