p2 added icon and renamed

This commit is contained in:
acidburn
2025-12-03 13:24:05 -05:00
parent 94615948f8
commit b7f9692e30
3 changed files with 30 additions and 12 deletions
+10 -5
View File
@@ -1,13 +1,18 @@
CC = gcc
TARGET = notepad_clone.exe
SRC = notepad_clone.c
WINDRES = windres
TARGET = ClasicNotepad.exe
SRC = ClasicNotepad.c
RES = ClasicNotepad.res
CFLAGS = -Wall -Wextra -std=c11 -mwindows
LDLIBS = -luser32 -lgdi32 -lcomdlg32
$(TARGET): $(SRC)
$(CC) $(CFLAGS) -o $@ $< $(LDLIBS)
$(TARGET): $(SRC) $(RES)
$(CC) $(CFLAGS) -o $@ $(SRC) $(RES) $(LDLIBS)
$(RES): ClasicNotepad.rc app.ico
$(WINDRES) -O coff ClasicNotepad.rc $(RES)
.PHONY: clean
clean:
del /f /q $(TARGET) 2>NUL || true
del /f /q $(TARGET) $(RES) 2>NUL || true