This repository has been archived on 2020-12-25. You can view files and clone it, but cannot push or open issues or pull requests.
ldl3/Makefile

44 lines
1.2 KiB
Makefile
Raw Normal View History

2020-05-20 17:33:09 +00:00
#
# limpador do luca0N! 3
2020-04-26 21:55:11 +00:00
# Copyright (C) 2020 luca0N!
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program 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 General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
#
2020-05-24 03:10:21 +00:00
# Contact me by e-mail via <mailto:luca0n@protonmail.com>.
2020-05-20 17:33:09 +00:00
#
C=gcc
CFLAG=-s -Os
2020-05-24 03:10:21 +00:00
MT=C:/Program\ Files\ \(x86\)/Windows\ Kits/10/bin/10.0.18362.0/x64/mt
MTARGS=-nologo
WINDRES=windres
2020-04-26 21:55:11 +00:00
2020-04-27 05:10:49 +00:00
ldl3: main.o about.h str.h colors.h
$(WINDRES) ldl3.rc -O coff -o ldl3.res
$(C) main.o about.h str.h colors.h ldl3.res -o ldl3 $(CFLAG)
$(MT) -manifest ldl3.manifest -outputresource:ldl3.exe $(MTARGS)
2020-04-26 21:55:11 +00:00
main.o: main.c
2020-05-20 17:33:09 +00:00
$(C) -c main.c $(CFLAG)
2020-04-26 21:55:11 +00:00
clean:
rm *.o *.exe *.res
cleandust:
rm *.o *.res
dustless:
make
2020-06-26 04:48:56 +00:00
make cleandust