blob: 85873c0a4059ff913ad62c79bb085d57584d09a5 (
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 += -O -ld-options,-mwindows
endif
all: EpisodeBrowser.exe
EpisodeBrowser.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 EpisodeBrowser.exe *.obj
|