You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
395 B
25 lines
395 B
CC = gcc
|
|
CFLAGS = -Wall -Wextra
|
|
|
|
all: test
|
|
|
|
test: testGuess
|
|
./testGuess
|
|
|
|
testGuess: build/mimetype.o build/testGuess.o
|
|
$(CC) -o $@ $^
|
|
|
|
build/mimetype.o: src/mimetype.c src/mimetype.h | build
|
|
$(CC) $(CFLAGS) -c $< -o $@
|
|
|
|
build/testGuess.o: test/testGuess.c src/mimetype.h | build
|
|
$(CC) $(CFLAGS) -Isrc/ -c $< -o $@
|
|
|
|
build:
|
|
mkdir build
|
|
|
|
clean:
|
|
rm -rf testGuess build
|
|
|
|
.PHONY: all test clean
|