From 295d423cc47f9ee8a72134dc544892a03b279311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 10 Jul 2022 23:23:09 +0200 Subject: Convert to C++. I already hit upon some object-oriented programming patterns in *listview.c, so I felt that it would be natural to use this as an opportunity to learn C++. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 405e8c6..99b5f28 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ B = build/default/ -C = c/main.c +C = c/main.cpp PL = pl/cfg.pl pl/episode_data.pl pl/local_episodes.pl pl/track_episodes.pl OBJ = $(B)common.obj $(B)datalistview.obj $(B)episodelistview.obj $(B)listview.obj $(B)pl.obj $(B)resource.obj @@ -18,11 +18,11 @@ $(B)EpisodeBrowser.exe: $(C) $(OBJ) $(PL) c/defs.h Makefile $(B)resource.obj: c/resource.h c/resource.rc c/application.manifest windres -i c/resource.rc -o $(B)resource.obj -$(B)%.obj: c/%.c c/defs.h +$(B)%.obj: c/%.cpp c/*.h $(CC) -c $(CFLAGS) -o $@ $< -TAGS: c/*.c c/*.h pl/*.pl - etags c/*.c c/*.h -lprolog pl/*.pl +TAGS: c/*.cpp c/*.h pl/*.pl + etags c/*.cpp c/*.h -lprolog pl/*.pl clean: rm -fr $(B)EpisodeBrowser.exe $(B)*.obj -- cgit v1.2.3