diff options
author | John Ankarström <john@ankarstrom.se> | 2022-07-10 23:23:09 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-07-10 23:25:09 +0200 |
commit | 295d423cc47f9ee8a72134dc544892a03b279311 (patch) | |
tree | 3e89b0bbcf42b3053225eb0dff88b887dd16df48 /Makefile | |
parent | 85a4ad2c184ed915915a2fb630415a80ed9a286f (diff) | |
download | EpisodeBrowser-295d423cc47f9ee8a72134dc544892a03b279311.tar.gz |
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++.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |