Commit cf2812ca authored by Yoann Pigné's avatar Yoann Pigné

buggy Makefile

parent 9bd03303
...@@ -7,7 +7,7 @@ CC = g++ ...@@ -7,7 +7,7 @@ CC = g++
CWARN = -W -Wall -Wshadow -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -O CWARN = -W -Wall -Wshadow -Wimplicit -Wreturn-type -Wcomment -Wtrigraphs -Wformat -Wparentheses -Wpointer-arith -Wuninitialized -O
CDBG = -g $(CWARN) -fno-inline CDBG = -g $(CWARN) -fno-inline
CFLAGS = -I$(INCDIR) -03 CFLAGS = -I$(INCDIR) -O3
DFLAGS = -I$(INCDIR) -g $(CWARN) -fno-inline -DDEBUG=1 DFLAGS = -I$(INCDIR) -g $(CWARN) -fno-inline -DDEBUG=1
CTAG = ctags CTAG = ctags
...@@ -33,9 +33,10 @@ $(OUT_BINARY) : $(OBJS) ...@@ -33,9 +33,10 @@ $(OUT_BINARY) : $(OBJS)
$(CC) $(CFLAGS) $(OBJS) -o $(OUT_BINARY) $(CC) $(CFLAGS) $(OBJS) -o $(OUT_BINARY)
$(OUT_LIBRARY) : $(OBJS) $(OUT_LIBRARY) : $(OBJS)
libtool -o $(OUT_LIBRARY) $(OBJS) libtool -static -o $(OUT_LIBRARY) $(OBJS)
$(OBJDIR)/%.o: $(SRCDIR)/%.cpp $(OBJDIR)/%.o: $(SRCDIR)/%.cpp
mkdir -p $(OBJDIR)
$(CC) $(CFLAGS) -c $? -o $@ $(CC) $(CFLAGS) -c $? -o $@
.PHONY : clean depend fresh .PHONY : clean depend fresh
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment