From 6fd66a9264731bd7ee6d7602675965021d929a4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Wed, 24 Aug 2022 15:17:08 +0200 Subject: Remove Prolog dependency. The only thing left to reimplement is the tracking of watched episodes in MPC-HC. --- Makefile | 44 +++++++++++++++++++++++++++----------------- 1 file changed, 27 insertions(+), 17 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3