Examples and stuff

This commit is contained in:
Valentin Brandl
2022-09-28 19:22:48 +02:00
parent 1f6b8db99d
commit 525e0ca1cc
9 changed files with 100 additions and 1 deletions

16
assets/logic/Makefile Normal file
View File

@@ -0,0 +1,16 @@
# use bash so process substutution is available
CC = gcc
CFLAGS = -fno-stack-protector -g
SHELL = bash
SRC = logic.c
TARGET = $(SRC:%.c=%)
.PHONY: build
build: $(TARGET)
%: %.c
$(CC) ${CFLAGS} $< -o $@
.PHONY: clean
clean:
rm -f logic