# $Id$
+EXTRA_CFLAGS =
+EXTRA_LDFLAGS =
+EXTRA_LIBS =
+
.PHONY: all clean
ifeq ($(shell uname -s),Linux)
-LIBS += -ldl
+EXTRA_LIBS += -ldl
endif
all: ./devforge
./devforge: ./main.o
- $(CC) $(LDFLAGS) -o $@ $< $(LIBS)
+ $(CC) $(LDFLAGS) $(EXTRA_LDFLAGS) -o $@ $< $(LIBS) $(EXTRA_LIBS)
./main.o: ./main.c ./devforge.h
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
clean:
rm -f ./devforge ./*.o
done
clean:
- $(MAKE) -C ./DevForge
- $(MAKE) -C ./Module
+ $(MAKE) -C ./DevForge clean
+ $(MAKE) -C ./Module clean
--- /dev/null
+# $Id$
+
+EXTRA_CFLAGS = -fPIC
+EXTRA_LDFLAGS = -shared
+EXTRA_LIBS =
+
+.PHONY: all clean
+
+all: ./subversion.so
+
+./%.so: ./%.o
+ $(CC) $(LDFLAGS) $(EXTRA_LDFLAGS) -o $@ $^ $(LIBS) $(EXTRA_LIBS)
+
+./%.o: ./%.c
+ $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c -o $@ $<
+
+clean:
+ rm -f *.so *.o
--- /dev/null
+/* $Id$ */
+/* --- START LICENSE --- */
+/* --- END LICENSE --- */