Skip to content

Commit 6f7058e

Browse files
committed
Remove redundant flags from adapter compile rules
- `$(INCLUDES)` is already included in `$(CFLAGS)` - `$(LIBS)` only generate linker warnings
1 parent 456abbb commit 6f7058e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,9 @@ $(OBJDIR)/%.o : %.c
9292
$(OBJDIR)/%.o : %.f
9393
$(FC) $(FFLAGS) -c $< -o $@
9494
$(OBJDIR)/%.o : adapter/%.c
95-
$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@
95+
$(CC) $(CFLAGS) -c $< -o $@
9696
$(OBJDIR)/%.o : adapter/%.cpp
97-
$(CXX) -std=c++11 $(CFLAGS) $(INCLUDES) -c $< -o $@ $(LIBS)
98-
#$(CC) $(CFLAGS) $(INCLUDES) -c $< -o $@ $(LIBS)
97+
$(CXX) -std=c++11 $(CFLAGS) -c $< -o $@
9998

10099
# Source files in the $(CCX) folder
101100
$(OBJDIR)/%.o : $(CCX)/%.c

0 commit comments

Comments
 (0)