summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..9a02f09
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+CC=g++
+CPPFLAGS=-Os -pipe -fPIC
+LDFLAGS=-Wl,-O1
+
+OBJECTS=widget.o widgetbutton.o widgetcheckbox.o widgetform.o \
+ widgettextfield.o widgetprogressbar.o widgetslider.o \
+ widgettitle.o widgettooltip.o
+
+all: ${OBJECTS}
+ ${CC} ${LDFLAGS},-s -shared -o libskygi++.so ${OBJECTS}
+
+clean:
+ rm -f ${OBJECTS}
+ rm -f libskygi++.so
+
+remake: clean all
+
+%.o: %.cpp
+ ${CC} ${CPPFLAGS} ${INCLUDES} -c -o $@ $<