Makefile 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. #
  2. # /*
  3. # * Copyright 2021
  4. # *
  5. # * This program is free software: you can redistribute it and/or modify
  6. # * it under the terms of the GNU General Public License as published by
  7. # * the Free Software Foundation, either version 3 of the License, or
  8. # * (at your option) any later version.
  9. # *
  10. # * This program is distributed in the hope that it will be useful,
  11. # * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. # * GNU General Public License for more details.
  14. # *
  15. # * You should have received a copy of the GNU General Public License
  16. # * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. # *
  18. # * SPDX-License-Identifier: GPL-3.0+
  19. # * License-Filename: LICENSE
  20. # *
  21. # */
  22. # makefile to compile gml4win.exe on Linux and test using wine64
  23. gml4win_CC = x86_64-w64-mingw32-gcc
  24. gml4win_WINDRES = x86_64-w64-mingw32-windres
  25. gml4win_SOURCES = \
  26. gml4win.c \
  27. ../src/gml_parser.c \
  28. ../src/gml_scanner.c \
  29. ../src/bubbling.c \
  30. ../src/sugi2.c \
  31. ../src/sugi3.c \
  32. ../src/sugi4.c \
  33. ../src/sugi5.c \
  34. ../src/pos.c \
  35. ../src/pos2.c \
  36. ../src/pos3.c \
  37. ../src/pos4.c \
  38. ../src/hier.c \
  39. ../src/splay-tree.c \
  40. ../src/uniqstr.c \
  41. ../src/uniqnode.c \
  42. ../src/uniqgraph.c \
  43. ../src/dpif.c \
  44. ../src/dot.tab.c \
  45. ../src/dp.c \
  46. ../src/dpcolor.c \
  47. ../src/dpmisc.c \
  48. ../src/dpun.c \
  49. ../src/dpus.c \
  50. ../src/dpn.c \
  51. ../src/dpe.c \
  52. ../src/dpg.c \
  53. ../src/lex.yy.c \
  54. ../src/rhp.c \
  55. ../src/vcg.flex.c \
  56. ../src/vcg.c \
  57. ../src/vcgus.c \
  58. ../src/vcgun.c
  59. #
  60. gml4win_CFLAGS = \
  61. -mms-bitfields \
  62. -I. \
  63. -I../src \
  64. -Wall \
  65. -Wextra
  66. #
  67. gml4win_LIBS = \
  68. -lgdi32 \
  69. -lcomctl32 \
  70. -lcomdlg32
  71. # main entry
  72. all:
  73. rm -v -f ./gml4win.exe
  74. ./lindent.sh gml4win.c
  75. $(gml4win_WINDRES) gml4win.rc demo.o
  76. $(gml4win_CC) -g -c $(gml4win_CFLAGS) $(gml4win_SOURCES)
  77. $(gml4win_CC) *.o $(gml4win_LIBS) -o gml4win.exe
  78. clean:
  79. rm -v -f dsmake.*
  80. rm -v -f *.c~
  81. rm -v -f gml4win.exe
  82. rm -v -f *.o
  83. # end