Error fixed: missing -c flag for objects

This commit is contained in:
Yannick Reiß 2023-09-21 07:47:01 +02:00
parent 1a4e76e62f
commit 14254b7db2
No known key found for this signature in database
GPG Key ID: 5A3AF456F0A0338C
1 changed files with 2 additions and 3 deletions

View File

@ -5,15 +5,14 @@ CFLAGS = -Wall
LDFLAGS =
SRCDIR = src/
INCLUDE = include/
OBJECTS = compilefuck.o
OBJECTS = tokenizer.o compilefuck.o
all: $(BIN)
$(BIN): $(OBJECTS)
$(CC) -o $(BIN) $(OBJECTS) $(LDFLAGS)
%.o: $(SRCDIR)%.c
$(CC) $(CFLAGS) -o $@ $<
$(CC) $(CFLAGS) -o $@ -c $<
run: $(BIN)
./$(BIN)