1
0
Dev_Vernam/Makefile
2022-12-15 20:10:44 +01:00

21 lines
329 B
Makefile

CC = gcc
CFLAGS = -ansi -Wall
SRCDIR = ./src
ODIR = ./out
OFILES = $(subst src/,out/,$(subst .c,.o,$(shell find $(SRCDIR)/ -type f)))
EXE = vernam
but : $(EXE)
$(ODIR)/%.o : $(SRCDIR)/%.c
@mkdir -p $(@D)
$(CC) -c $< -o $@
$(EXE) : $(OFILES)
$(CC) $(CFLAGS) -o $(EXE) $(OFILES)
clean :
-rm -rf $(ODIR)
.PHONY : but clean