From d3cd6a63a0fff7cc77f26b319d61ba256aae680c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 7 Aug 2022 22:22:38 +0200 Subject: Add showtodo script. --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 444b9ea..8ed6fed 100644 --- a/Makefile +++ b/Makefile @@ -10,6 +10,9 @@ CLFLAGS += -Wall -Wextra -Wpedantic -Wno-missing-field-initializers -Wno-parenth CLFLAGS += -ld-options,-mwindows,-static-libstdc++ -lcomctl32 #CLFLAGS += -ld-options,-mconsole +WINI = C:/Perl/c/x86_64-w64-mingw32/include +WINH = $(WINI)/win*.h $(WINI)/basetsd.h + all: showdeps b/$(EXE) cp b/$(EXE) "C:\Users\John\Desktop\Delat" @@ -17,7 +20,7 @@ clean: rm -fr b/$(EXE) b/*.obj TAGS: c/*.cpp c/*.h pl/*.pl - etags c/*.cpp c/*.h -lprolog pl/*.pl + etags c/*.cpp c/*.h $(WINH) -lprolog pl/*.pl b/$(EXE): Makefile c/main.cpp $(OBJ) $(PL) $(CL) $(CLFLAGS) -goal true -o $@ c/main.cpp $(OBJ) $(PL) @@ -38,6 +41,11 @@ s/%.s: c/%.cpp showdeps: @perl showdeps +# showdeps prints all TODO comments in the C++ source files. +.PHONY: showtodo +showtodo: + @perl showtodo + # deps.mk includes additional, dynamically generated dependencies for # b/*.obj and b/EpisodeBrowser.exe. Because it is included below, GNU # make should build deps.mk automatically. -- cgit v1.2.3