added shit

This commit is contained in:
klein panic
2024-10-22 21:37:15 -04:00
parent 895e9c32f0
commit 81790b4bb6
6 changed files with 212 additions and 0 deletions

25
timer/build/Makefile Normal file
View File

@@ -0,0 +1,25 @@
# Makefile
CC = gcc
CFLAGS = -Wall -I../include
LDFLAGS = -lm
SRC_DIR = ../src
OBJ_DIR = ../obj
INCLUDE_DIR = ../include
SOURCES = $(wildcard $(SRC_DIR)/*.c)
OBJECTS = $(patsubst $(SRC_DIR)/%.c, $(OBJ_DIR)/%.o, $(SOURCES))
TARGET = timer_app
all: $(TARGET)
$(TARGET): $(OBJECTS)
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
$(CC) $(CFLAGS) -c $< -o $@
clean:
rm -f $(OBJ_DIR)/*.o $(TARGET)