From fdd88f97b9f684468225ecb5432917251f2e91c6 Mon Sep 17 00:00:00 2001 From: Alessandro Iezzi Date: Wed, 30 Nov 2022 21:03:28 +0100 Subject: Rename `makefile` in `DOSmakefile` --- DOSmakefile | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ makefile | 36 ------------------------------------ 2 files changed, 55 insertions(+), 36 deletions(-) create mode 100644 DOSmakefile delete mode 100644 makefile diff --git a/DOSmakefile b/DOSmakefile new file mode 100644 index 0000000..6f2d88b --- /dev/null +++ b/DOSmakefile @@ -0,0 +1,55 @@ +# +# Copyright (C) 2022 Alessandro Iezzi +# +# This file is part of clist. +# +# clist is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# clist is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with clist. If not, see . +# + +OUT1 = . +include + +NAME=clist + +SRC=src +BIN=bin +OBJ=obj + +CC=cl +LB=lib + +cdebug= +cflags= +cvars= + +LIBS=$(WIN_SDK_LIBS) + +all: init dist dll lib + +init: + if not exist $(BIN) mkdir $(BIN) + if not exist $(OBJ) mkdir $(OBJ) + +dist: init + $(CC) /Fo$(OBJ)\ $(cdebug) $(cflags) $(cvars) $(SRC)\*.c /link $(LIBS) /OUT:$(BIN)\$(NAME).exe + +dll: init + $(CC) /Fo$(OBJ)\ /LD $(SRC)\*.c /link /OUT:$(BIN)\$(NAME).dll + +lib: init dll + $(LB) /OUT:$(BIN)\$(NAME).lib $(OBJ)\*.obj + +clean: + if exist $(BIN) rmdir /s /q $(BIN) + if exist $(OBJ) rmdir /s /q $(OBJ) diff --git a/makefile b/makefile deleted file mode 100644 index 70e354b..0000000 --- a/makefile +++ /dev/null @@ -1,36 +0,0 @@ -OUT1 = . -include - -NAME=clist - -SRC=src -BIN=bin -OBJ=obj - -CC=cl -LB=lib - -cdebug= -cflags= -cvars= - -LIBS=$(WIN_SDK_LIBS) - -all: init dist dll lib - -init: - if not exist $(BIN) mkdir $(BIN) - if not exist $(OBJ) mkdir $(OBJ) - -dist: init - $(CC) /Fo$(OBJ)\ $(cdebug) $(cflags) $(cvars) $(SRC)\*.c /link $(LIBS) /OUT:$(BIN)\$(NAME).exe - -dll: init - $(CC) /Fo$(OBJ)\ /LD $(SRC)\*.c /link /OUT:$(BIN)\$(NAME).dll - -lib: init dll - $(LB) /OUT:$(BIN)\$(NAME).lib $(OBJ)\*.obj - -clean: - if exist $(BIN) rmdir /s /q $(BIN) - if exist $(OBJ) rmdir /s /q $(OBJ) -- cgit v1.2.3