Skip to content

Commit

Permalink
tweak makefile for faster debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed May 3, 2024
1 parent 18eddc7 commit 57be0f0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,17 @@ ifdef DEBUG
CFLAGS += -D _DEBUG -D _DEBUG_X
endif

SRCS := $(wildcard src/*.c) $(wildcard src/*/*.c)
OBJS := $(SRCS:c=o) res.o

.PHONY: clean all
all: $(TARGET)

$(TARGET): $(wildcard src/*.c) $(wildcard src/*/*.c)
$(WINDRES) -J rc res.rc res.o
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ exports.def res.o $(LIBS)
%.o: %.rc
$(WINDRES) -J rc $< $@

$(TARGET): $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^ exports.def $(LIBS)

clean:
$(RM) $(TARGET) res.o
$(RM) $(TARGET) $(OBJS)

0 comments on commit 57be0f0

Please sign in to comment.