Makefile 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. APP=abermud
  2. PREFIX?=/usr/local
  3. CFILES = src/NoMalloc.c src/Main.c src/NewCmd.c src/AnsiBits.c src/TableDriver.c \
  4. src/TabCommand.c src/CompileTable.c src/InsAndOuts.c src/System.c src/PlyCommand.c \
  5. src/ObjCommand.c src/GenCommand.c src/SysSupport.c src/RoomCommands.c src/Editing.c \
  6. src/Parser.c src/SubHandler.c src/SaveLoad.c src/ComDriver.c src/BootDaemon.c \
  7. src/ComServer.c src/CondCode.c src/ActionCode.c src/TimeSched.c src/UserFile.c src/Daemons.c \
  8. src/TableEditing.c src/Container.c src/ExitLogic.c src/ContCommand.c src/Snoop.c \
  9. src/DarkLight.c src/Duplicator.c src/FlagControl.c src/UtilCommand.c src/ObjectEdit.c \
  10. src/Class.c src/LookFor.c src/UserVector.c src/FlagName.c src/FindPW.c src/runaber.c src/IPCClean.c \
  11. src/IPCDirect.c src/LibSocket.c src/ValidLogin.c src/BSX.c src/sha256.c
  12. OFILES = src/NoMalloc.o src/Main.o src/NewCmd.o src/AnsiBits.o src/TableDriver.o \
  13. src/TabCommand.o src/CompileTable.o src/InsAndOuts.o src/System.o src/PlyCommand.o \
  14. src/ObjCommand.o src/GenCommand.o src/SysSupport.o src/RoomCommands.o src/Editing.o \
  15. src/Parser.o src/SubHandler.o src/SaveLoad.o src/ComDriver.o src/BootDaemon.o \
  16. src/ComServer.o src/CondCode.o src/ActionCode.o src/TimeSched.o src/UserFile.o src/Daemons.o \
  17. src/TableEditing.o src/Container.o src/ExitLogic.o src/ContCommand.o src/Snoop.o \
  18. src/DarkLight.o src/Duplicator.o src/FlagControl.o src/UtilCommand.o src/ObjectEdit.o \
  19. src/Class.o src/LookFor.o src/UserVector.o src/FlagName.o \
  20. src/IPCDirect.o src/LibSocket.o src/ValidLogin.o src/BSX.o src/sha256.o
  21. HEADERS = src/System.h src/User.h src/Comms.h src/NoProto.h
  22. LDFLAGS =
  23. ECHO = /bin/echo
  24. MV = /bin/mv
  25. TOUCH = touch
  26. CC = gcc -Wall -pedantic -g -m32 -march=native -std=gnu99 -Isrc
  27. all : server Run_Aber Reg
  28. @${ECHO} AberMUD6 is up to date.
  29. server : ${OFILES}
  30. ${CC} ${LDFLAGS} ${OFILES}
  31. @${TOUCH} server
  32. @${MV} server server.old
  33. @${MV} a.out server
  34. Reg : src/Reg.o src/UserFile.o src/AnsiBits.o
  35. ${CC} ${LDFLAGS} src/Reg.o src/UserFile.o src/AnsiBits.o -o Reg
  36. Reg.o : Reg.c System.h
  37. client : src/Socket.o src/Client.o
  38. ${CC} ${LDFLAGS} src/Client.o src/Socket.o -lcurses -o client
  39. Socket.o : Socket.c
  40. Client.o : Client.c
  41. runaber.o : runaber.c
  42. Run_Aber : src/Run_Aber.o
  43. ${CC} ${LDFLAGS} src/Run_Aber.o -o Run_Aber
  44. clean:
  45. rm -f src/*.o *~ server Run_Aber Reg server.old Manual.txt src/flycheck*
  46. install:
  47. mkdir -p ${DESTDIR}${PREFIX}/bin
  48. mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/man/man1
  49. cp man/${APP}-server.1.gz ${DESTDIR}${PREFIX}/share/man/man1
  50. cp server ${DESTDIR}${PREFIX}/bin/${APP}-server
  51. uninstall:
  52. rm ${PREFIX}/bin/${APP}-server
  53. rm ${PREFIX}/share/man/man1/${APP}-*
  54. ${OFILES} : ${HEADERS}
  55. .PRECIOUS: ${CFILES} ${HEADERS}
  56. .DEFAULT: ${CFILES} ${HEADERS}