2022-11-26 20:07:41 +01:00
|
|
|
#SOURCES = $(wildcard *.c)
|
|
|
|
#BINARIES = $(SOURCES:%.c=%)
|
|
|
|
#CFLAGS = -g
|
|
|
|
#CC = gcc
|
|
|
|
#
|
|
|
|
#all: pre $(BINARIES)
|
|
|
|
#
|
|
|
|
#pre:
|
|
|
|
# @mkdir -p bin huffman/bin huffman/testfiles
|
|
|
|
#
|
|
|
|
SOURCES = $(wildcard *.c)
|
|
|
|
BINARIES = $(SOURCES:%.c=%)
|
|
|
|
EXECUTABLES= $(addprefix bin/,${BINARIES})
|
|
|
|
all: pre $(EXECUTABLES)
|
2022-11-26 18:00:11 +01:00
|
|
|
|
2022-11-26 20:07:41 +01:00
|
|
|
pre:
|
|
|
|
@mkdir -p bin
|
2022-11-26 18:00:11 +01:00
|
|
|
|
2022-11-26 20:07:41 +01:00
|
|
|
$(EXECUTABLES): $(SOURCES)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $< -lm
|