added list handling functions (from glib)
[rocksndiamonds.git] / src / libgame / Makefile
index 6148a9850eea68621ed487abca8a02bc2927eecb..54e92ed803b44b201d80c1ef6e4ed807bc97cc2f 100644 (file)
@@ -1,7 +1,12 @@
 # =============================================================================
-# Rocks'n'Diamonds Makefile (libgame)
+# Rocks'n'Diamonds - McDuffin Strikes Back!
 # -----------------------------------------------------------------------------
-# (c) 1995-2006 Holger Schemel <info@artsoft.org>
+# (c) 1995-2014 by Artsoft Entertainment
+#                  Holger Schemel
+#                  info@artsoft.org
+#                  https://www.artsoft.org/
+# -----------------------------------------------------------------------------
+# src/libgame/Makefile
 # =============================================================================
 
 # -----------------------------------------------------------------------------
@@ -13,32 +18,40 @@ SRCS =      system.c        \
        text.c          \
        sound.c         \
        joystick.c      \
-       toons.c         \
-       pcx.c           \
+       snapshot.c      \
        image.c         \
        random.c        \
        hash.c          \
+       list.c          \
+       http.c          \
+       base64.c        \
        setup.c         \
        misc.c          \
-       msdos.c         \
-       x11.c           \
-       sdl.c
+       sdl.c           \
+       zip/ioapi.c     \
+       zip/iowin32.c   \
+       zip/unzip.c     \
+       zip/miniunz.c
 
 OBJS = system.o        \
        gadgets.o       \
        text.o          \
        sound.o         \
+       snapshot.o      \
        joystick.o      \
-       toons.o         \
-       pcx.o           \
        image.o         \
        random.o        \
        hash.o          \
+       list.o          \
+       http.o          \
+       base64.o        \
        setup.o         \
        misc.o          \
-       msdos.o         \
-       x11.o           \
-       sdl.o
+       sdl.o           \
+       zip/ioapi.o     \
+       zip/iowin32.o   \
+       zip/unzip.o     \
+       zip/miniunz.o
 
 LIBGAME = libgame.a
 
@@ -50,11 +63,11 @@ LIBGAME = libgame.a
 all: $(LIBGAME)
 
 $(LIBGAME): $(OBJS)
-       $(AR) cru $(LIBGAME) $(OBJS)
+       $(AR) cr $(LIBGAME) $(OBJS)
        $(RANLIB) $(LIBGAME)
 
 .c.o:
-       $(CC) $(PROFILING) $(CFLAGS) -c $*.c
+       $(CC) $(PROFILING) $(CFLAGS) -c $*.c -o $*.o
 
 clean:
        $(RM) $(OBJS)
@@ -68,6 +81,9 @@ clean:
 depend:
        for i in $(SRCS); do $(CPP) $(CFLAGS) -M $$i; done > .depend
 
+depend-clean:
+       $(RM) .depend
+
 ifeq (.depend,$(wildcard .depend))
 include .depend
 endif