huffman/Makefile

14 lines
198 B
Makefile

CC=gcc
CFLAGS=-Wall -std=c99
SRC=src
PROG=huffman
all: main.o compress.o huftree.o display.o common.o
$(CC) $^ $(CFLAGS) -o $(PROG)
%.o: src/%.c
$(CC) $(CFLAGS) -c $^
clean:
rm -f $(PROG) *.o