Ensure the resource file to be compiled before linking

This commit is contained in:
ValdikSS 2021-12-30 03:45:20 +03:00
parent f97a2d04f0
commit c92cd77c51

View File

@ -33,7 +33,7 @@ endif
.PHONY: default all clean
default: manifest $(TARGET)
default: $(TARGET)
all: default
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c utils/*.c)) goodbyedpi-rc.o
@ -42,7 +42,7 @@ HEADERS = $(wildcard *.h utils/*.h)
%.o: %.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
manifest:
goodbyedpi-rc.o:
$(CCWINDRES) goodbyedpi-rc.rc goodbyedpi-rc.o
.PRECIOUS: $(TARGET) $(OBJECTS)