aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: df0a190875159b1bc4cd931cbe1be12cc65511cb (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
30
31
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"

clean:
	rm -fr b/EpisodeBrowser.exe b/*.obj

TAGS: c/*.cpp c/*.h pl/*.pl
	etags c/*.cpp c/*.h -lprolog pl/*.pl

deps.mk: c/*.cpp
	perl makedeps.pl

b/EpisodeBrowser.exe: Makefile deps.mk $(C) $(OBJ) $(PL) c/*.h
	$(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
	$(CC) -c $(CFLAGS) -o $@ $<

-include deps.mk