Makefile 571 B

1234567891011121314151617181920212223242526
  1. libraries= -lcrypto -lpthread
  2. cxx = g++
  3. files= SimpleYggGen.cpp
  4. ncursesfiles=ncurses/field.c ncurses/ncurses-interface.c
  5. ncursesoptions=-lform -lmenu -lncurses -fpermissive
  6. programname=SimpleYggGen
  7. CXFLAG=-std=gnu++11
  8. GTKINTERFACENAME=interface
  9. c = gcc
  10. GTKDIR=GTK
  11. all: SimpleYggGen gtk
  12. cp $(GTKDIR)/$(GTKINTERFACENAME) $(GTKDIR)/*.glade .
  13. SimpleYggGen:
  14. $(cxx) $(files) $(ncursesfiles) $(CXFLAG) $(libraries) $(ncursesoptions) -o $(programname)
  15. gtk:
  16. cd $(GTKDIR) && make
  17. clear:
  18. rm $(programname) $(GTKINTERFACENAME) # GTK.glade
  19. cd $(GTKDIR) && make clear