aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2008-06-13 12:44:31 +0000
committerIOhannes m zmölnig <zmoelnig@iem.at>2015-10-14 15:08:23 +0200
commitcea4322c3ca725ebc4096740b6060b02064a4a8e (patch)
treeb97cb819a20ebbf00d7e508b1e7e48ab6df4363d
parent86c89e24f57b63883775f932c0a2354b5fe4660c (diff)
trying to fix makefile
svn path=/trunk/externals/iem/dmx512/; revision=9990
-rw-r--r--dmx512/src/Makefile14
-rw-r--r--dmx512/src/dmxout.c2
2 files changed, 11 insertions, 5 deletions
diff --git a/dmx512/src/Makefile b/dmx512/src/Makefile
index 93da650..c751028 100644
--- a/dmx512/src/Makefile
+++ b/dmx512/src/Makefile
@@ -5,7 +5,7 @@ include Make.version
Make.config: Make.config.in configure
./configure
-include Make.config
+-include Make.config
.SUFFIXES: .$(EXT)
@@ -16,10 +16,13 @@ OBJECTS = $(SOURCES:.c=.$(EXT))
all: $(OBJECTS)
clean:
- -rm -f *.o *.d
+ -rm -f *.o *.d
binclean:
- -rm -f *.$(EXT)
+ -rm -f *.$(EXT) *.dll *.pd_linux *.pd_darwin *.l_i386 *.l_ia64 *.d_ppc *.d_fat
+
+mrproper: distclean
+ -rm Make.config configure *.d.*
distclean: clean binclean
-rm -f *~ _* config.*
@@ -44,13 +47,15 @@ distbin: distclean all clean
everything: clean all install distclean
-$(TARGETS): %.o : %.c
+$(TARGETS): %.o : %.c Make.config
$(CC) $(DMX4PD_CFLAGS) -DDMX4PD_VERSION="\"$(VERSION)\"" -c -o $@ $*.c
$(OBJECTS): %.$(EXT) : %.o
$(LD) $(LFLAGS) -o $@ $*.o $(LIBS)
$(STRIP) $(STRIPFLAGS) $@
+
+ifeq (,$(findstring clean, $(MAKECMDGOALS)))
## dependencies: as proposed by the GNU-make documentation
## see http://www.gnu.org/software/make/manual/html_node/make_47.html#SEC51
-include $(SOURCES:.c=.d)
@@ -62,3 +67,4 @@ $(OBJECTS): %.$(EXT) : %.o
configure: configure.ac
autoconf
+endif
diff --git a/dmx512/src/dmxout.c b/dmx512/src/dmxout.c
index 5fa17ba..af812b9 100644
--- a/dmx512/src/dmxout.c
+++ b/dmx512/src/dmxout.c
@@ -152,5 +152,5 @@ void dmxout_setup(void)
class_addfloat(dmxout_class, dmxout_float);
- post("DMX4PD (%s): (c) 2008 IOhannes m zmlnig - iem @ kug", DMX4PD_VERSION);
+ post("DMX4PD (ver.%s): (c) 2008 IOhannes m zmlnig - iem @ kug", DMX4PD_VERSION);
}