9
3

makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. APP=login
  2. SF= ../common/Log.o ../common/timer.o ../common/packet_dump.o ../common/unix.o \
  3. ../common/Mutex.o ../common/MiscFunctions.o LoginDatabase.o LoginAccount.o \
  4. ../common/TCPConnection.o ../common/emu_opcodes.o \
  5. client.o net.o PacketHeaders.o LWorld.o ../common/md5.o ../common/dbcore.o \
  6. Web/LoginWeb.o \
  7. ../common/EQEMuError.o ../common/misc.o ../common/Crypto.o ../common/RC4.o \
  8. .obj/debug.o .obj/database.o .obj/EQStream.o ../common/xmlParser.o \
  9. .obj/EQStreamFactory.o .obj/EQPacket.o ../common/CRC16.o ../common/packet_functions.o \
  10. ../common/Condition.o ../common/opcodemgr.o ../common/PacketStruct.o ../common/ConfigReader.o \
  11. ../common/DatabaseNew.o ../common/DatabaseResult.o ../common/Web/WebServer.o ../common/JsonParser.o
  12. CC=g++
  13. LINKER=gcc
  14. DFLAGS=-DEQ2 -DLOGIN
  15. WFLAGS=-Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated
  16. COPTS=$(WFLAGS) -ggdb -march=native -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY $(DFLAGS) -I/usr/include/mariadb -I/usr/local/include/boost -std=c++17
  17. LINKOPTS=-rdynamic -L. -lstdc++ -lm -lz -L/usr/lib/x86_64-linux-gnu -lmariadb -lboost_system -lboost_thread -lboost_filesystem -lssl -lcrypto -lpthread -ldl
  18. all: $(APP)
  19. $(APP): $(SF)
  20. $(LINKER) $(COPTS) $(OBJS) $^ $(LINKOPTS) -o $@
  21. clean:
  22. rm -f $(SF) $(APP)
  23. %.o: %.cpp
  24. $(CC) -c $(COPTS) $< -o $@
  25. .obj/%.o: ../common/%.cpp ../common/%.h
  26. mkdir -p .obj
  27. $(CC) $(COPTS) -c $< -o $@