mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-25 01:57:47 +01:00
tweak makefile for faster debugging
This commit is contained in:
parent
18eddc7f7f
commit
57be0f022e
13
Makefile
13
Makefile
@ -12,12 +12,17 @@ ifdef DEBUG
|
|||||||
CFLAGS += -D _DEBUG -D _DEBUG_X
|
CFLAGS += -D _DEBUG -D _DEBUG_X
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
SRCS := $(wildcard src/*.c) $(wildcard src/*/*.c)
|
||||||
|
OBJS := $(SRCS:c=o) res.o
|
||||||
|
|
||||||
.PHONY: clean all
|
.PHONY: clean all
|
||||||
all: $(TARGET)
|
all: $(TARGET)
|
||||||
|
|
||||||
$(TARGET): $(wildcard src/*.c) $(wildcard src/*/*.c)
|
%.o: %.rc
|
||||||
$(WINDRES) -J rc res.rc res.o
|
$(WINDRES) -J rc $< $@
|
||||||
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ exports.def res.o $(LIBS)
|
|
||||||
|
$(TARGET): $(OBJS)
|
||||||
|
$(CC) $(LDFLAGS) -o $@ $^ exports.def $(LIBS)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(TARGET) res.o
|
$(RM) $(TARGET) $(OBJS)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user