Created
January 15, 2024 02:06
-
-
Save yangniao23/d53b6b308a5be2c5d4dd7d4a7451dc87 to your computer and use it in GitHub Desktop.
リバーシ Makefile メモ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NAME = reversi | |
TARGET = $(NAME).exe | |
SRCS = cpu.c hashmap.c mapio.c mapmanager.c tools.c $(NAME).c | |
OBJS = $(SRCS:.c=.o) | |
CC = gcc | |
CFLAGS = -Wall -O3 -march=native | |
RM = del /F /Q | |
all: $(TARGET) | |
.c.o: | |
$(CC) $(CFLAGS) -o $@ -c $< | |
$(TARGET): $(OBJS) | |
$(CC) $(CFLAGS) -o $(TARGET) $(OBJS) | |
clean: | |
$(RM) $(TARGET) $(OBJS) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
黒丸,白丸を Shift-JIS にする必要がある
BCC102開発環境だと全角になって表示が崩れるので Windows Terminal で実行する