You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

  1. GPP = clang++ -std=c++11 -stdlib=libc++
  2. #DEFINES =
  3. #DEBUGFLAGS = -g -fno-default-inline -fkeep-inline-functions
  4. OPTFLAGS = -O4 -fkeep-inline-functions
  5. LIBRARY = libltl2dstar.a
  6. EXECUTABLE = ltl2dstar
  7. CFLAGS = -I. -Wall -DINLINE_BITSET $(DEFINES) $(DEBUGFLAGS) $(OPTFLAGS)
  8. # uncomment the following line to compile the sample plugins
  9. #PLUGINS = plugins/SamplePlugin.o plugins/DRAReachabilityPlugin.o plugins/WriteDRAPlugin.o
  10. LIB_OBJS = $(PLUGINS) common/BitSet.o common/RunProgram.win32.o common/RunProgram.posix.o StutterSensitivenessInformation.o LTL2DRA.o LTL2DSTAR_Scheduler.o APMonom.o parsers/nba-parser-lbtt.lex.o parsers/nba-parser-lbtt.tab.o parsers/nba-parser-promela.lex.o parsers/nba-parser-promela.tab.o plugins/PluginManager.o
  11. MAIN_OBJS = ltl2dstar_main.o
  12. OBJS = $(LIB_OBJS) $(MAIN_OBJ)
  13. .PHONY : all lib clean
  14. all : $(EXECUTABLE)
  15. lib : $(LIBRARY)
  16. $(LIBRARY) : $(LIB_OBJS)
  17. $(AR) rcs $@ $+
  18. $(EXECUTABLE) : $(MAIN_OBJS) $(LIBRARY)
  19. $(GPP) -g $(LINK_FLAGS) -o $@ $+
  20. %.o : %.cpp
  21. $(GPP) -c $(CFLAGS) -o $@ $<
  22. clean :
  23. rm -f ltl2dstar *.o *.a common/*.o parsers/*.o plugins/*.o