Commit e5931c0a authored by anthraxx's avatar anthraxx
Browse files

adding simple makefile to build door challenge

parent 6128aef5
*.out /challenge/*.o
/doorchallenge
TARGET=doorchallenge
CC:=gcc
LD:=$(CC)
LDLIBS=
LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro
CFLAGS=-Wall \
-Wextra \
-Winit-self \
-Wuninitialized \
-Wfloat-equal \
-Wint-to-pointer-cast \
-pedantic \
-O2 \
-fstack-protector-strong
all: $(TARGET)
$(TARGET): challenge/challenge.o
$(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)
challenge/%.o: challenge/%.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
$(RM) -rf challenge/*.o $(TARGET)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment