mirror of
https://github.com/zs-yg/kortapp-z.git
synced 2025-12-06 16:10:42 +08:00
添加内存锻炼器代码
This commit is contained in:
22
others/C/memory/Makefile
Normal file
22
others/C/memory/Makefile
Normal file
@@ -0,0 +1,22 @@
|
||||
CC = gcc
|
||||
CFLAGS = -Wall -Wextra -I./include
|
||||
LDFLAGS = -Wl,-subsystem,windows -municode -luser32 -lgdi32 -lcomctl32 -lpsapi
|
||||
SRC = src/main.c src/memory_ops.c src/ui.c src/init.c \
|
||||
src/utils.c src/config.c src/benchmark.c src/log.c \
|
||||
src/error.c src/version.c
|
||||
OBJ = $(SRC:.c=.o)
|
||||
TARGET = memory_trainer.exe
|
||||
|
||||
all: $(TARGET)
|
||||
|
||||
$(TARGET): $(OBJ)
|
||||
$(CC) $(CFLAGS) -o $(TARGET) $(OBJ) $(LDFLAGS)
|
||||
|
||||
.c.o:
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
clean:
|
||||
del /Q $(subst /,\,$(OBJ)) $(TARGET)
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
Reference in New Issue
Block a user