blob: 1ab1213c022a487017cdbd3ae5cbd6783cf63d8f (
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
|
B = build/default/
C = c/main.cpp
PL = pl/cfg.pl pl/episode_data.pl pl/local_episodes.pl pl/track_episodes.pl
OBJ = $(B)common.obj $(B)datalistview.obj $(B)episodelistview.obj $(B)listview.obj $(B)pl.obj $(B)resource.obj
CC = swipl-ld
CFLAGS += -Wall -Wpedantic -O -cc-options,-std=c++17 -ld-options,-mwindows
CFLAGS += -DUNICODE -D_UNICODE
LDFLAGS += -lcomctl32 -luxtheme
all: $(B)EpisodeBrowser.exe
cp $< "C:\Users\John\Desktop\Delat"
$(B)EpisodeBrowser.exe: $(C) $(OBJ) $(PL) c/*.h Makefile
$(CC) -v $(CFLAGS) $(LDFLAGS) -goal true -o $@ $(C) $(OBJ) $(PL)
$(B)resource.obj: c/resource.h c/resource.rc c/application.manifest
windres -i c/resource.rc -o $(B)resource.obj
$(B)%.obj: c/%.cpp c/*.h
$(CC) -c $(CFLAGS) -o $@ $<
TAGS: c/*.cpp c/*.h pl/*.pl
etags c/*.cpp c/*.h -lprolog pl/*.pl
clean:
rm -fr $(B)EpisodeBrowser.exe $(B)*.obj
|