makefile.win

来自「C程序设计经典教程第5版程序示例,比较适合初级c语言的学生」· WIN 代码 · 共 31 行

WIN
31
字号
# Project: fig15_21
# Makefile created by Dev-C++ 4.9.9.2

CPP  = g++.exe
CC   = gcc.exe
WINDRES = windres.exe
RES  = 
OBJ  = fig15_21.o $(RES)
LINKOBJ  = fig15_21.o $(RES)
LIBS =  -L"C:/Dev-Cpp/lib" C:/Dev-Cpp/lib/liballeg.a  
INCS =  -I"C:/Dev-Cpp/include" 
CXXINCS =  -I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"  -I"C:/Dev-Cpp/include/c++/3.4.2/backward"  -I"C:/Dev-Cpp/include/c++/3.4.2/mingw32"  -I"C:/Dev-Cpp/include/c++/3.4.2"  -I"C:/Dev-Cpp/include" 
BIN  = fig15_21.exe
CXXFLAGS = $(CXXINCS)  
CFLAGS = $(INCS) -lalleg  
RM = rm -f

.PHONY: all all-before all-after clean clean-custom

all: all-before fig15_21.exe all-after


clean: clean-custom
	${RM} $(OBJ) $(BIN)

$(BIN): $(OBJ)
	$(CC) $(LINKOBJ) -o "fig15_21.exe" $(LIBS)

fig15_21.o: fig15_21.c
	$(CC) -c fig15_21.c -o fig15_21.o $(CFLAGS)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?