Revision 911d0520 custompackages/graph-parser/src/Makefile

View differences:

custompackages/graph-parser/src/Makefile
5 5
INCLUDES = -I/usr/local/boost/
6 6

  
7 7
# define the C source files
8
SRCS = main.cpp bi_connected_components.cpp graph_manager.cpp parser.cpp sub_component.cpp utility.cpp
8
SRCS = bi_connected_components.cpp graph_manager.cpp parser.cpp sub_component.cpp utility.cpp
9 9

  
10 10

  
11 11
# define the C object files
......
19 19
OBJS = $(SRCS:.cpp=.o)
20 20

  
21 21
MAIN = main
22
BIN_FILE = graph-parser
22
MAIN_BIN = graph-parser
23
SIMULATION = simulation
23 24

  
24 25
# all: ../bin/$(MAIN)
25 26
# 	@echo  Simple compiler named main has been compiled
26 27

  
27
$(MAIN): $(OBJS)
28
	$(CXX) $(CFLAGS) $(INCLUDES) -o $(BIN_FILE) $(OBJS) $(LFLAGS) $(LIBS )
28
$(MAIN): $(MAIN).o $(SIMULATION).o $(OBJS)
29
	$(CXX) $(CFLAGS) $(INCLUDES) -o $(MAIN_BIN) $(MAIN).o $(OBJS) $(LFLAGS) $(LIBS )
30
	$(CXX) $(CFLAGS) $(INCLUDES) -o $(SIMULATION) $(SIMULATION).o $(OBJS) $(LFLAGS) $(LIBS )
31

  
32

  
33
$(SIMULATION): $(SIMULATION).o $(OBJS)
34
	$(CXX) $(CFLAGS) $(INCLUDES) -o $(SIMULATION) $(SIMULATION).o $(OBJS) $(LFLAGS) $(LIBS )
29 35

  
30 36
# this is a suffix replacement rule for building .o's from .c's
31 37
# it uses automatic variables $<: the name of the prerequisite of

Also available in: Unified diff