Initial commit
All checks were successful
CI / build-and-analyze (push) Successful in 33s

This commit is contained in:
2026-08-08 20:33:32 +03:00
commit e382d4ed13
12 changed files with 474 additions and 0 deletions

23
Makefile.mingw Normal file
View File

@@ -0,0 +1,23 @@
# MinGW Makefile for CgeTimer
CC = gcc
AR = ar
CFLAGS = -std=c99 -O2 -Wall -Wextra
ARFLAGS = rcs
TARGET = libCgeTimer.a
SOURCES = win32/Timer.c
OBJECTS = $(SOURCES:.c=.o)
.PHONY: all clean
all: $(TARGET)
$(TARGET): $(OBJECTS)
$(AR) $(ARFLAGS) $@ $^
%.o: %.c CgeTimer.h
$(CC) $(CFLAGS) -c $< -o $@
clean:
del $(OBJECTS) $(TARGET) 2>nul || exit 0