9
3

makefile 1.2 KB

123456789101112131415161718192021222324252627282930
  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. CC=g++
  11. LINKER=gcc
  12. DFLAGS=-DEQ2 -DLOGIN
  13. WFLAGS=-Wall -Wuninitialized -Wwrite-strings -Wcast-qual -Wcomment -Wcast-align -Wno-deprecated
  14. COPTS=$(WFLAGS) -g -march=native -O -pthread -pipe -DFX -D_GNU_SOURCE -DINVERSEXY $(DFLAGS) -I/usr/include/mysql -I/usr/mysql/include
  15. LINKOPTS=-rdynamic -L. -lstdc++ -lm -lz -L/usr/lib/mysql -L/usr/mysql/lib -lmysqlclient -ldl
  16. all: $(APP)
  17. $(APP): $(SF)
  18. $(LINKER) $(COPTS) $(OBJS) $^ $(LINKOPTS) -o $@
  19. clean:
  20. rm -f $(SF) $(APP)
  21. %.o: %.cpp
  22. $(CC) -c $(COPTS) $< -o $@
  23. .obj/%.o: ../common/%.cpp ../common/%.h
  24. mkdir -p .obj
  25. $(CC) $(COPTS) -c $< -o $@