aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile44
1 files changed, 27 insertions, 17 deletions
diff --git a/Makefile b/Makefile
index dcdbafe..610e81c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,15 +1,25 @@
EXE = EpisodeBrowser.exe
-OBJ = b/datalistview.obj b/debug.obj b/data.obj b/episodelistview.obj b/ext.obj b/wcharptr.obj
-OBJ += b/win.obj b/layout.obj b/listview.obj b/pl.obj b/test.obj b/resource.obj
-PL = pl/cfg.pl pl/episode_data.pl pl/local_episodes.pl pl/track_episodes.pl
-
-CL = swipl-ld
-CLFLAGS = -DUNICODE -D_UNICODE
-CLFLAGS += -DDEBUG
-CLFLAGS += -cc-options,-std=c++17 -O0
-CLFLAGS += -ld-options,-mwindows,-static-libstdc++ -lcomctl32 -lwininet -llibxml2
-CLFLAGS += -IC:/msys64/mingw64/include/libxml2
-CLFLAGS += -Wall -Wextra -Wpedantic -Wno-missing-field-initializers -Wno-parentheses
+
+OBJ = b/datalistview.obj
+OBJ += b/data.obj
+OBJ += b/debug.obj
+OBJ += b/episodelistview.obj
+OBJ += b/ext.obj
+OBJ += b/layout.obj
+OBJ += b/listview.obj
+OBJ += b/main.obj
+OBJ += b/resource.obj
+OBJ += b/test.obj
+OBJ += b/wcharptr.obj
+OBJ += b/win.obj
+
+CC = gcc
+CFLAGS = -DUNICODE -D_UNICODE
+CFLAGS += -DDEBUG
+CFLAGS += -std=c++17 -mwindows -O0
+CFLAGS += -IC:/msys64/mingw64/include/libxml2
+CFLAGS += -Wall -Wextra -Wpedantic -Wno-missing-field-initializers -Wno-parentheses
+LDFLAGS += -lstdc++ -lcomctl32 -lwininet -llibxml2
all: showdeps b/$(EXE)
cp b/$(EXE) "C:\Users\John\Desktop\Delat"
@@ -17,20 +27,20 @@ all: showdeps b/$(EXE)
clean:
rm -fr b/$(EXE) b/*.obj
-TAGS: c/*.cpp c/*.h pl/*.pl
- etags --declarations -lc++ c/*.cpp c/*.h -lprolog pl/*.pl
+TAGS: c/*.cpp c/*.h
+ etags --declarations -lc++ c/*.cpp c/*.h
-b/$(EXE): Makefile c/main.cpp $(OBJ) $(PL)
- $(CL) $(CLFLAGS) -goal true -o $@ c/main.cpp $(OBJ) $(PL)
+b/$(EXE): Makefile $(OBJ)
+ $(CC) $(CFLAGS) -o $@ $(OBJ) $(LDFLAGS)
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
- $(CL) -c $(CLFLAGS) -o $@ $<
+ $(CC) -c $(CFLAGS) -o $@ $<
s/%.s: c/%.cpp
- $(CL) $(CLFLAGS) -cc-options,-fverbose-asm,-masm=intel -S -o $@ $<
+ $(CC) $(CFLAGS) -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