X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2FMakefile;h=b0c50a56990ccb8c055487cf639b704f4c89b587;hb=5b949866d429203ae48f2088e4f97592755592c6;hp=c40e159b245eed2714b3c1a55dcdca381380f987;hpb=37b7be5bfa32039200f760c03ec94dd995a25f2a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/Makefile b/src/modules/Makefile index c40e159b2..b0c50a569 100644 --- a/src/modules/Makefile +++ b/src/modules/Makefile @@ -1,13 +1,10 @@ # (C) ChatSpike development team # Makefile by -# Small modifications by -# +# Many Thanks to Andrew Church +# for assisting with making this work right. all: $(MODULES) -%.so: - @$(MAKE) --no-print-directory TARGET=$(@:.so=) - -$(TARGET).so: - $(CC) -I../../include $(FLAGS) -shared -o $@ $(TARGET).cpp - @cp $(TARGET).so $(MODPATH)/$(TARGET).so +%.so: %.cpp + $(CC) -I../../include $(FLAGS) -shared -o $@ $< + @cp $@ $(MODPATH)/