Revision 1e73dd2a custompackages/graph-parser/src/Makefile

View differences:

custompackages/graph-parser/src/Makefile
19 19
OBJS = $(SRCS:.cpp=.o)
20 20

  
21 21
MAIN = main
22
BIN_FILE = graph-parser
22 23

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

  
26 27
$(MAIN): $(OBJS)
27
	$(CXX) $(CFLAGS) $(INCLUDES) -o ../bin/$(MAIN) $(OBJS) $(LFLAGS) $(LIBS )
28
	$(CXX) $(CFLAGS) $(INCLUDES) -o $(BIN_FILE) $(OBJS) $(LFLAGS) $(LIBS )
28 29

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

  
36 37
# remove object files and executable when user executes "make clean"
37 38
clean:
38
	$(RM) *.o ../bin/$(MAIN)
39
	$(RM) *.o $(BIN_FILE)

Also available in: Unified diff