diff options
author | 2022-11-30 21:03:28 +0100 | |
---|---|---|
committer | 2022-11-30 21:03:28 +0100 | |
commit | fdd88f97b9f684468225ecb5432917251f2e91c6 (patch) | |
tree | 9ccce6aa3d77860f3f0e15a47b42cefa46fea656 | |
parent | 6ab7111b84ca1ea8a8a8229c0d89387ccd85c111 (diff) | |
download | utils-fdd88f97b9f684468225ecb5432917251f2e91c6.tar.gz utils-fdd88f97b9f684468225ecb5432917251f2e91c6.zip |
Rename `makefile` in `DOSmakefile`
-rw-r--r-- | DOSmakefile | 55 | ||||
-rw-r--r-- | makefile | 36 |
2 files changed, 55 insertions, 36 deletions
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 <aiezzi AT alessandroiezzi PERIOD it> +# +# 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 <https://www.gnu.org/licenses/>. +# + +OUT1 = . +include <win-sdk.mk> + +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 <win-sdk.mk> - -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) |