2021-06-02 08:49:27 +00:00
|
|
|
# WorldSpawn Makefile
|
|
|
|
|
|
|
|
GTK_CFLAGS=$(shell pkg-config --cflags gtk+-2.0)
|
2021-06-07 06:20:34 +00:00
|
|
|
GLEXT_CFLAGS=$(shell pkg-config --cflags gtkglext-1.0)
|
|
|
|
|
|
|
|
LIB_CFLAGS=$(CFLAGS) $(GTK_CFLAGS) $(GLEXT_CFLAGS) -I../../include -I../../libs -DGTK_TARGET=2
|
2021-06-02 08:49:27 +00:00
|
|
|
DO_CXX=$(CXX) -static -fPIC $(LIB_CFLAGS) -o $@ -c $<
|
|
|
|
|
|
|
|
.cpp.o:
|
|
|
|
$(DO_CXX)
|
|
|
|
|
|
|
|
WS_OBJS = \
|
|
|
|
accelerator.o \
|
|
|
|
button.o \
|
|
|
|
clipboard.o \
|
|
|
|
cursor.o \
|
|
|
|
dialog.o \
|
|
|
|
entry.o \
|
|
|
|
filechooser.o \
|
|
|
|
frame.o \
|
|
|
|
glfont.o \
|
|
|
|
glwidget.o \
|
|
|
|
image.o \
|
|
|
|
menu.o \
|
|
|
|
messagebox.o \
|
|
|
|
nonmodal.o \
|
|
|
|
paned.o \
|
|
|
|
toolbar.o \
|
|
|
|
widget.o \
|
|
|
|
window.o \
|
2021-06-07 06:20:34 +00:00
|
|
|
xorrectangle.o
|
2021-06-02 08:49:27 +00:00
|
|
|
|
|
|
|
# binary target
|
|
|
|
../libgtkutil.a: $(WS_OBJS)
|
|
|
|
ar rcs $@ $(WS_OBJS)
|
|
|
|
|
|
|
|
# object files
|
|
|
|
accelerator.o: accelerator.cpp accelerator.h
|
|
|
|
button.o: button.cpp button.h
|
|
|
|
clipboard.o: clipboard.cpp clipboard.h
|
|
|
|
cursor.o: cursor.cpp cursor.h
|
|
|
|
dialog.o: dialog.cpp dialog.h
|
|
|
|
entry.o: entry.cpp entry.h
|
|
|
|
filechooser.o: filechooser.cpp filechooser.h
|
|
|
|
frame.o: frame.cpp frame.h
|
|
|
|
glfont.o: glfont.cpp glfont.h
|
|
|
|
glwidget.o: glwidget.cpp glwidget.h
|
|
|
|
image.o: image.cpp image.h
|
|
|
|
menu.o: menu.cpp menu.h
|
|
|
|
messagebox.o: messagebox.cpp messagebox.h
|
|
|
|
nonmodal.o: nonmodal.cpp nonmodal.h
|
|
|
|
paned.o: paned.cpp paned.h
|
|
|
|
toolbar.o: toolbar.cpp toolbar.h
|
|
|
|
widget.o: widget.cpp widget.h
|
|
|
|
window.o: window.cpp window.h
|
|
|
|
xorrectangle.o: xorrectangle.cpp xorrectangle.h
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f *.o ../libgtkutil.a
|