#
CFLAGS := -I../../include -I../../extras $(CFLAGS)
-#
-# C compiler flags: plugin compilation
-#
-PCFLAGS += -fPIC
-
-#
-# C compiler flags: plugin linking
-#
-ifneq (,$(findstring darwin,$(SYS)))
-PLCFLAGS += -bundle -undefined suppress
-else
-ifeq ($(SYS),beos)
-PLCFLAGS += -nostart ../../lib/_APP_
-else
-PLCFLAGS += -shared
-endif
-endif
-
#
# Standard dependencies
#
$(PLUGIN_C): %.o: .dep/%.d
$(PLUGIN_C): %.o: %.c
- $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $<
+ $(CC) $(CFLAGS) -DPLUGIN $(PCFLAGS) -c -o $@ $<
$(BUILTIN_C): BUILTIN_%.o: .dep/%.d
$(BUILTIN_C): BUILTIN_%.o: %.c
$(PLUGIN_CPP): %.o: .dep/%.dpp
$(PLUGIN_CPP): %.o: %.cpp
- $(CC) $(CFLAGS) $(PCFLAGS) -c -o $@ $<
+ $(CC) $(CFLAGS) -DPLUGIN $(PCFLAGS) -c -o $@ $<
$(BUILTIN_CPP): BUILTIN_%.o: .dep/%.dpp
$(BUILTIN_CPP): BUILTIN_%.o: %.cpp