9
3

makefile 1.3 KB

12345678910111213141516171819202122232425262728293031
  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. ../common/EQEMuError.o ../common/misc.o ../common/Crypto.o ../common/RC4.o \
  7. .obj/debug.o .obj/database.o .obj/EQStream.o ../common/xmlParser.o \
  8. .obj/EQStreamFactory.o .obj/EQPacket.o ../common/CRC16.o ../common/packet_functions.o \
  9. ../common/Condition.o ../common/opcodemgr.o ../common/PacketStruct.o ../common/ConfigReader.o \
  10. ../common/DatabaseNew.o ../common/DatabaseResult.o
  11. CC=g++
  12. LINKER=gcc
  13. DFLAGS=-DEQ2 -DLOGIN
  14. WFLAGS=-Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated
  15. COPTS=$(WFLAGS) -g -march=native -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY $(DFLAGS) -I/usr/include/mariadb -I/usr/mariadb/include -std=c++17
  16. LINKOPTS=-rdynamic -L. -lstdc++ -lm -lz -L/usr/lib/x86_64-linux-gnu -lmariadbclient -ldl
  17. all: $(APP)
  18. $(APP): $(SF)
  19. $(LINKER) $(COPTS) $(OBJS) $^ $(LINKOPTS) -o $@
  20. clean:
  21. rm -f $(SF) $(APP)
  22. %.o: %.cpp
  23. $(CC) -c $(COPTS) $< -o $@
  24. .obj/%.o: ../common/%.cpp ../common/%.h
  25. mkdir -p .obj
  26. $(CC) $(COPTS) -c $< -o $@