Release v1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user