guess-mime-type: Devine le mime type
This commit is contained in:
24
guess-mime-type/Makefile
Normal file
24
guess-mime-type/Makefile
Normal file
@@ -0,0 +1,24 @@
|
||||
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
|
Reference in New Issue
Block a user