diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-18 01:16:59 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-18 01:16:59 +0200 |
commit | 70aaa5f29ade3f13b3d83bec5ae6c6e5e90353e7 (patch) | |
tree | 0d325322f1bf76062bcbdacb3adebbd1f5921ce1 | |
parent | 6a2b55588278d9401eb946ec94970bbea1069f58 (diff) | |
download | EpisodeBrowser-70aaa5f29ade3f13b3d83bec5ae6c6e5e90353e7.tar.gz |
Makefile: Add assembly target.
-rw-r--r-- | .gitignore | 7 | ||||
-rw-r--r-- | Makefile | 15 |
2 files changed, 13 insertions, 9 deletions
@@ -1,6 +1,7 @@ +*~ +*.db /b/ /misc/ -TAGS +/s/ deps.mk -*~ -*.db +TAGS @@ -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 |