Skip to content
Snippets Groups Projects
Commit 25ed9b69 authored by Sander Mathijs van Veen's avatar Sander Mathijs van Veen
Browse files

Fixed invalid Makefile.

parent 1febb304
No related branches found
No related tags found
No related merge requests found
PROG = philosophers PROG = ass4
CC = gcc CC = gcc
CFLAGS = -ansi -Wall -Wextra -O3 -pthread CFLAGS = -std=c99 -pedantic -Wall -Wextra -D_GNU_SOURCE # -D_POSIX_SOURCE
OFILES = host.o LFLAGS = -lpthread
OFILES = main.o
RM = rm -f RM = rm -f
ifdef DEBUG
CFLAGS +=-ggdb
else
CFLAGS +=-O3
endif
$(PROG): $(OFILES) $(PROG): $(OFILES)
$(CC) -o $(PROG) $(OFILES) $(CFLAGS) $(CC) $(CFLAGS) $(LFLAGS) -o $@ $(OFILES)
%.o: %.c %.o: %.c
$(CC) -c $< $(CFLAGS) $(CC) $(CFLAGS) -o $@ -c $<
clean: clean:
$(RM) *.o $(PROG) $(RM) $(OFILES) $(PROG)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment