Permalink
Browse files

Improved parser/Makefile to choose_parser.cpp depends on parser_*.hpp…

… files.
  • Loading branch information...
danfis committed Oct 14, 2008
1 parent 306e770 commit 13aa25662bbda7d076edfda89766e9fb965626f2
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/parser/Makefile
@@ -5,13 +5,17 @@ CXXFLAGS += $(QT_CFLAGS) -I../
TARGETS = libparser.a
OBJS = in.o parser.o parser_big.o choose_parser.o
PARSERS = $(wildcard parser_*.hpp)
all: $(TARGETS)
libparser.a: $(OBJS)
ar cr $@ $(OBJS)
ranlib $@
choose_parser.cpp: $(PARSERS)
touch choose_parser.cpp
%.o: %.cpp %.hpp
$(CC) $(CXXFLAGS) -c -o $@ $<
%.o: %.cpp

0 comments on commit 13aa256

Please sign in to comment.