Release v1

This commit is contained in:
acidburn
2025-12-03 14:04:56 -05:00
parent b7f9692e30
commit bd6a229b40
6 changed files with 104 additions and 12 deletions
+25 -7
View File
@@ -1,8 +1,16 @@
SHELL = cmd
.SHELLFLAGS = /C
CC = gcc
WINDRES = windres
TARGET = ClasicNotepad.exe
SRC = ClasicNotepad.c
RES = ClasicNotepad.res
TARGET = ClassicNotepad.exe
SRC = ClassicNotepad.c
RES = ClassicNotepad.res
ALIAS = notepad.exe
ISCC = iscc
INSTALLER = ClassicNotepadSetup.exe
CP = copy /y
RM = del /f /q
CFLAGS = -Wall -Wextra -std=c11 -mwindows
LDLIBS = -luser32 -lgdi32 -lcomdlg32
@@ -10,9 +18,19 @@ LDLIBS = -luser32 -lgdi32 -lcomdlg32
$(TARGET): $(SRC) $(RES)
$(CC) $(CFLAGS) -o $@ $(SRC) $(RES) $(LDLIBS)
$(RES): ClasicNotepad.rc app.ico
$(WINDRES) -O coff ClasicNotepad.rc $(RES)
$(ALIAS): $(TARGET)
$(CP) $(TARGET) $(ALIAS) >NUL
$(RES): ClassicNotepad.rc app.ico
$(WINDRES) -O coff ClassicNotepad.rc $(RES)
.PHONY: all clean install
all: $(TARGET) $(ALIAS)
install: $(INSTALLER)
$(INSTALLER): ClassicNotepad.iss $(TARGET) $(ALIAS) app.ico
$(ISCC) ClassicNotepad.iss
.PHONY: clean
clean:
del /f /q $(TARGET) $(RES) 2>NUL || true
-$(RM) $(TARGET) $(RES) $(ALIAS) $(INSTALLER) 2>NUL