Skip to content

Commit

Permalink
remove object file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
diamant3 committed Oct 1, 2023
1 parent 8bc9f90 commit fd31d6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions c/advanced/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,18 @@ CC = gcc
CFLAGS = -Wall -Wextra -Ilib
LDFLAGS =
SRC = advanced.c
OBJ = advanced.o
TARGET = advanced
CPPCHECK = cppcheck

.PHONY: all clean check

all: $(TARGET)

$(TARGET): $(OBJ)
$(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET) $(OBJ)

%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
$(TARGET): $(SRC)
$(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET) $(SRC)

clean:
rm -f $(TARGET) $(OBJ)
rm -f $(TARGET)

check:
$(CPPCHECK) -i lib $(SRC)
Binary file added c/advanced/advanced
Binary file not shown.

0 comments on commit fd31d6d

Please sign in to comment.