From 8fb311b20f7661e3fbd899dbf110d49d99f4d2f1 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 3 Mar 2022 12:11:13 -0500 Subject: [PATCH] Add back rules for building C++ so Haiku files can be built. --- src/build.rules | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/build.rules b/src/build.rules index acda88472..e7cc1c86a 100644 --- a/src/build.rules +++ b/src/build.rules @@ -85,9 +85,15 @@ _make_dirs: $(BUILDDIR)/$(PROJ)/src/%.o: $(ROOTDIR)src/%.c $(CONFIG_FILE) | _make_dirs $(Q)$(CC) -c -o $@ $(CFLAGS) $< @$(E) " CC " $< +$(BUILDDIR)/$(PROJ)/src/%.o: $(ROOTDIR)src/%.cpp $(CONFIG_FILE) | _make_dirs + $(Q)$(CC) -c -o $@ $(CFLAGS) $< + @$(E) " CC " $< $(BUILDDIR)/$(PROJ)/%.o: %.c $(CONFIG_FILE) | _make_dirs $(Q)$(CC) -c -o $@ $(CFLAGS) $< @$(E) " CC " $< +$(BUILDDIR)/$(PROJ)/%.o: %.cpp $(CONFIG_FILE) | _make_dirs + $(Q)$(CC) -c -o $@ $(CFLAGS) $< + @$(E) " CC " $< # for the fuzzing tests $(BUILDDIR)/$(PROJ)/wpa_supplicant/%.o: $(ROOTDIR)wpa_supplicant/%.c $(CONFIG_FILE) | _make_dirs $(Q)$(CC) -c -o $@ $(CFLAGS) $<