blob: 6155f90d1c5a40aaaf1ae8a5b1b1659d73532417 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
R = ../../
C = $(R)c/main.c
PL = $(R)pl/track_episodes.pl $(R)pl/local_episodes.pl $(R)pl/episode_data.pl
OBJ = common.obj datalistview.obj episodelistview.obj listview.obj resource.obj
CC = swipl-ld
CFLAGS += -DUNICODE -D_UNICODE
LDFLAGS += -lcomctl32 -luxtheme
ifeq ($(BUILD_MODE),debug)
CFLAGS += -g
else
CFLAGS += -O2 -ld-options,-mwindows
endif
all: episode_browser.exe
episode_browser.exe: $(C) $(OBJ) $(PL) $(R)c/defs.h $(R)Makefile
$(CC) -v $(CFLAGS) $(LDFLAGS) -goal true -o $@ $(C) $(OBJ) $(PL)
resource.obj: $(R)c/resource.h $(R)c/resource.rc
windres -i $(R)c/resource.rc -o resource.obj
%.obj: $(R)c/%.c $(R)c/defs.h
$(CC) -c $(CFLAGS) -o $@ $<
clean:
rm -fr episode_browser.exe *.obj
|