CXX = gcc
CC = cc
CXXFLAGS = -Wall -g
OBJS = main_gps.o Gps.o Handle_Connection.o queue.o GPRS_Connection.o MidStruct.o _Text_VLC_fork.o scheduler.o rwconfig.o rwFRAM.o rwRecord.o
LIBS = -lpthread
TARGET = client
$(TARGET): $(OBJS)
$(CXX) $(CXXFLAGS) -o $(TARGET) $(OBJS) $(LIBS)
rwRecord.o: stdafx.h rwRecord.h
$(CC) $(CXXFLAGS) -c rwRecord.c
rwFRAM.o: stdafx.h rwFRAM.h
$(CC) $(CXXFLAGS) -c rwFRAM.c
rwconfig.o: stdafx.h rwconfig.h
$(CC) $(CXXFLAGS) -c rwconfig.c
_Text_VLC_fork.o: stdafx.h _Text_VLC_fork.h
$(CC) $(CXXFLAGS) -c _Text_VLC_fork.c
queue.o: stdafx.h queue.h
$(CC) $(CXXFLAGS) -c queue.c
GPRS_Connection.o: stdafx.h GPRS_Connection.h
$(CC) $(CXXFLAGS) -c GPRS_Connection.c
MidStruct.o: stdafx.h MidStruct.h
$(CC) $(CXXFLAGS) -c MidStruct.c
scheduler.o: stdafx.h scheduler.h
$(CC) $(CXXFLAGS) -c scheduler.c
Handle_Connection.o:
$(CC) $(CXXFLAGS) -c Handle_Connection.c
Gps.o:
$(CC) $(CXXFLAGS) -c Gps.c
client.o: stdafx.h scheduler.h _Text_VLC_fork.h rwconfig.h
$(CC) $(CXXFLAGS) -c client.c
#main_handle.o:
# $(CC) $(CXXFLAGS) -c main_handle.c
main_gps.o:
$(CC) $(CXXFLAGS) -c main_gps.c
all: $(TARGET)
echo "rm 1.txt && valgrind --tool=memcheck --leak-check=full --show-reachable=yes -v ./client 2> 1.txt"
.PHONY : clean
clean:
rm -f $(OBJS) $(TARGET)
感谢David Morre先生的makefile模板!我会记得请你和任**吃饭的!
阅读(1183) | 评论(0) | 转发(0) |