testing
This commit is contained in:
28
Simple_Substitution/build/Makefile
Normal file
28
Simple_Substitution/build/Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
# Variables
|
||||
CC = gcc
|
||||
CFLAGS = -I../include -Wall -Wextra
|
||||
OBJDIR = ../obj
|
||||
SRCDIR = ../src
|
||||
BINDIR = ../build
|
||||
|
||||
# Source files
|
||||
SOURCES = $(SRCDIR)/main.c $(SRCDIR)/substitution_cipher.c
|
||||
OBJECTS = $(OBJDIR)/main.o $(OBJDIR)/substitution_cipher.o
|
||||
|
||||
# Build target
|
||||
TARGET = substitution_cipher
|
||||
|
||||
# Rules
|
||||
all: $(BINDIR)/$(TARGET)
|
||||
|
||||
$(BINDIR)/$(TARGET): $(OBJECTS)
|
||||
$(CC) $(OBJECTS) -o $(BINDIR)/$(TARGET)
|
||||
|
||||
$(OBJDIR)/%.o: $(SRCDIR)/%.c
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
rm -f $(OBJDIR)/*.o $(BINDIR)/$(TARGET)
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
BIN
Simple_Substitution/build/substitution_cipher
Executable file
BIN
Simple_Substitution/build/substitution_cipher
Executable file
Binary file not shown.
Reference in New Issue
Block a user