objects =LogInfo.o DataConvent.o ServerFuction.o \
Server.o main.o stdafx.o Database.o SQLiteDBHelper.o
LinuxServer : $(objects)
g++ -lhpr -lsqlite3 -o LinuxServer $(objects)
DataConvent.o : DataConvert.h HPR_Time.h
g++ -c -Wall -o DataConvent.o DataConvent.cpp
LogInfo.o : stdafx.h
g++ -c -Wall -o LogInfo.o LogInfo.cpp
main.o : resource.h Server.h HPR_Hpr.h
g++ -c -Wall -o main.o main.cpp
Server.o : stdafx.h
g++ -c -Wall -o Server.o Server.cpp
ServerFuction.o : stdafx.h Server.h
g++ -c -Wall -o ServerFuction.o ServerFuction.cpp
stdafx.o : stdafx.h
g++ -c -Wall -o stdafx.o stdafx.cpp
Database.o : Database.h SQLiteDBHelper.h TestClass.h stdafx.h
g++ -c -Wall -o Database.o Database.cpp
SQLiteDBHelper.o : SQLiteDBHelper.h stdafx.h
g++ -c -Wall -o SQLiteDBHelper.o SQLiteDBHelper.cpp
Server.o main.o stdafx.o Database.o SQLiteDBHelper.o
LinuxServer : $(objects)
g++ -lhpr -lsqlite3 -o LinuxServer $(objects)
DataConvent.o : DataConvert.h HPR_Time.h
g++ -c -Wall -o DataConvent.o DataConvent.cpp
LogInfo.o : stdafx.h
g++ -c -Wall -o LogInfo.o LogInfo.cpp
main.o : resource.h Server.h HPR_Hpr.h
g++ -c -Wall -o main.o main.cpp
Server.o : stdafx.h
g++ -c -Wall -o Server.o Server.cpp
ServerFuction.o : stdafx.h Server.h
g++ -c -Wall -o ServerFuction.o ServerFuction.cpp
stdafx.o : stdafx.h
g++ -c -Wall -o stdafx.o stdafx.cpp
Database.o : Database.h SQLiteDBHelper.h TestClass.h stdafx.h
g++ -c -Wall -o Database.o Database.cpp
SQLiteDBHelper.o : SQLiteDBHelper.h stdafx.h
g++ -c -Wall -o SQLiteDBHelper.o SQLiteDBHelper.cpp
clean :
rm LinuxServer $(objects)
//注意所有g++命令前都要有一个tab