Skip to content

Commit

Permalink
makefile: remove ccache
Browse files Browse the repository at this point in the history
  • Loading branch information
gtxaspec committed Jun 24, 2024
1 parent 0384a44 commit d0499fd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
CC = ${CROSS_COMPILE}gcc
CXX = ${CROSS_COMPILE}g++

CCACHE = ccache
CFLAGS = -Wall -Wextra -Wno-unused-parameter -O2 -DNO_OPENSSL=1
ifeq ($(KERNEL_VERSION_4),y)
CFLAGS += -DKERNEL_VERSION_4
Expand Down Expand Up @@ -50,15 +49,15 @@ $(VERSION_FILE): $(SRC_DIR)/version.tpl.hpp

$(OBJ_DIR)/%.o: $(SRC_DIR)/%.cpp $(VERSION_FILE)
@mkdir -p $(@D)
$(CCACHE) $(CXX) $(CXXFLAGS) -I$(LIBIMP_INC_DIR) -c $< -o $@
$(CXX) $(CXXFLAGS) -I$(LIBIMP_INC_DIR) -c $< -o $@

$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c $(VERSION_FILE)
@mkdir -p $(@D)
$(CCACHE) $(CC) $(CFLAGS) -I$(LIBIMP_INC_DIR) -c $< -o $@
$(CC) $(CFLAGS) -I$(LIBIMP_INC_DIR) -c $< -o $@

$(TARGET): $(OBJECTS) $(VERSION_FILE)
@mkdir -p $(@D)
$(CCACHE) $(CXX) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)
$(CXX) $(LDFLAGS) -o $@ $(OBJECTS) $(LIBS)

.PHONY: all clean

Expand Down

0 comments on commit d0499fd

Please sign in to comment.