start sink

This commit is contained in:
Wolfgang Hottgenroth 2021-02-08 14:53:49 +01:00
parent c6b489d017
commit 3c46916768
2 changed files with 26 additions and 0 deletions

21
sink/Makefile Normal file
View File

@ -0,0 +1,21 @@
BUILD_DIR = build
C_SOURCES = \
../cube/User/Src/sha256.c \
sink20169.c
C_INCLUDES = \
-I../cube/User/Inc
CC = gcc
CFLAGS = $(C_INCLUDES) -Wall -Werror
LDFLAGS =
OBJECTS = $(addprefix $(BUILD_DIR)/,$(notdir $(C_SOURCES:.c=.o)))
vpath %.c $(sort $(dir $(C_SOURCES)))
$(BUILD_DIR)/%.o: %.c Makefile | $(BUILD_DIR)
$(CC) -c $(CFLAGS) $< -o $@
$(BUILD_DIR)/sink20169: $(OBJECTS) Makefile
$(CC) $(OBJECTS) $(LDFLAGS) -o $@

5
sink/sink20169.c Normal file
View File

@ -0,0 +1,5 @@
#include <stdio.h>
int main() {
printf("Hello world!\n");
}