aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-07-18 01:16:59 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-07-18 01:16:59 +0200
commit70aaa5f29ade3f13b3d83bec5ae6c6e5e90353e7 (patch)
tree0d325322f1bf76062bcbdacb3adebbd1f5921ce1 /Makefile
parent6a2b55588278d9401eb946ec94970bbea1069f58 (diff)
downloadEpisodeBrowser-70aaa5f29ade3f13b3d83bec5ae6c6e5e90353e7.tar.gz
Makefile: Add assembly target.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 9 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index fee2a72..73a24a5 100644
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,10 @@ EXE = EpisodeBrowser.exe
OBJ = b/common.obj b/datalistview.obj b/episodelistview.obj b/listview.obj b/pl.obj b/resource.obj
PL = pl/cfg.pl pl/episode_data.pl pl/local_episodes.pl pl/track_episodes.pl
-CC = swipl-ld
-CFLAGS += -Wall -Wpedantic -O -cc-options,-std=c++17 -ld-options,-mwindows
-CFLAGS += -DUNICODE -D_UNICODE
-LDFLAGS += -lcomctl32 -luxtheme
+CL = swipl-ld
+CLFLAGS = -DUNICODE -D_UNICODE
+CLFLAGS += -cc-options,-std=c++17 -Wall -Wpedantic -O
+CLFLAGS += -ld-options,-mwindows -lcomctl32 -luxtheme
all: showdeps b/$(EXE)
cp b/$(EXE) "C:\Users\John\Desktop\Delat"
@@ -17,13 +17,16 @@ TAGS: c/*.cpp c/*.h pl/*.pl
etags c/*.cpp c/*.h -lprolog pl/*.pl
b/$(EXE): Makefile c/main.cpp $(OBJ) $(PL)
- $(CC) -v $(CFLAGS) $(LDFLAGS) -goal true -o $@ c/main.cpp $(OBJ) $(PL)
+ $(CL) $(CLFLAGS) -goal true -o $@ c/main.cpp $(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 $@ $<
+ $(CL) -c $(CLFLAGS) -o $@ $<
+
+s/%.s: c/%.cpp
+ $(CL) $(CLFLAGS) -cc-options,-fverbose-asm,-masm=intel -S -o $@ $<
# showdeps prints a short summary of which dependencies have changed,
# causing which targets to be rebuilt. It is run by the `all' target