diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/Makefile | 13 |
1 files changed, 5 insertions, 8 deletions
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 <Craig@ChatSpike.net> -# Small modifications by <brain@ChatSpike.net> -# +# Many Thanks to Andrew Church <achurch@achurch.org> +# 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)/ |