Relative Content

Tag Archive for cmakefiledirectory

makefile for C I cant help to figure out whats wrong

CC=gcc CFLAGS=-Wall -Wextra -Werror -lm -pedantic # %: ./src/%.c # $(CC) -o ./bin/$@ $^ $(CFLAGS) guiao04: ./src/guiao04.o ./src/functions.o $(CC) -o ./bin/guiao04 ./src/guiao04.o ./src/functions.o $(CFLAGS) guiao04.o: ./src/guiao04.c ./src/functions.h $(CC) -c ./src/guiao04.c $(CFLAGS) functions.o: ./src/functions.c ./src/functions.h $(CC) -c ./src/functions.c $(CFLAGS) i have this as my makefile to create the executable guiao04, i cant seem to get whats […]