diff options
| author | Christian Cunningham <cc@local.lan> | 2025-03-02 18:25:26 -0800 |
|---|---|---|
| committer | Christian Cunningham <cc@local.lan> | 2025-03-02 18:25:26 -0800 |
| commit | 9e229153989b0cfc235c4b53637a8083e6056400 (patch) | |
| tree | f108bf1ef2bdbbe41eaf52f66c351846f656aaa8 /Makefile | |
| parent | 1bcbd387e4087f4b401201a68f9d4c300c1d0c6b (diff) | |
Simplified building
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -19,16 +19,23 @@ LDFLAGS+=$(shell pkgconf --libs $(PKGS)) default: clean build -.PHONY: clean build +.PHONY: clean build run build: $(BUILD_DIR)$(EXE) $(BUILD_DIR)$(EXE): $(OBJS) - gcc -o $@ $(LDFLAGS) $^ + @echo LD --\> $@ + @gcc -o $@ $(LDFLAGS) $^ $(OBJ_DIR)%.o: $(SRC_DIR)%.c - gcc -o $@ $(CFLAGS) -c $< + @echo CC $< --\> $@ + @gcc -o $@ $(CFLAGS) -c $< clean: - -rm -rf $(OBJ_DIR) $(BUILD_DIR) + @echo Cleaning build files... + @-rm -rf $(OBJ_DIR) $(BUILD_DIR) @mkdir -p $(OBJ_DIR) $(BUILD_DIR) $(OBJ_DIRS) + +run: $(BUILD_DIR)$(EXE) + @echo Executing... + @./$(BUILD_DIR)$(EXE) |
