Skip to content

Commit

Permalink
[Fix] Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
gsc2001 committed Sep 9, 2020
1 parent b5535d9 commit c052055
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ OBJECTS = $(patsubst $(SRC)/%,$(BUILD)/%,$(SOURCES:.$(SRCEXT)=.o))

COMMAND = $(CC) $(CFLAGS) -I$(INC)

debug: CFLAGS += -DDEBUG -g
debug: bin/gSH

bin/gSH: $(OBJECTS)
@echo "Linking Objects ..."
$(COMMAND) -o bin/gSH $(OBJECTS)

debug: CFLAGS += -DDEBUG -g
debug: bin/gSH

$(BUILD)/main.o: $(SRC)/main.c $(INC)/shell.h
$(COMMAND) -o $(BUILD)/main.o -c $(SRC)/main.c

Expand Down

0 comments on commit c052055

Please sign in to comment.