Mercurial > audlegacy
diff audtool/Makefile.in.standalone @ 1202:4122a358d1b6 trunk
[svn] - temporal: copy the original Makefile as a template for OMKizing.
author | nenolod |
---|---|
date | Tue, 13 Jun 2006 23:57:16 -0700 |
parents | audtool/Makefile.in@6af3f8fb2ed0 |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/audtool/Makefile.in.standalone Tue Jun 13 23:57:16 2006 -0700 @@ -0,0 +1,43 @@ +CC = @CC@ +RM = @RM@ +MV = @MV@ +CP = @CP@ +INSTALL = @INSTALL@ +PREFIX = @prefix@ +BIN = audtool +LDFLAGS = @LDFLAGS@ +CPPFLAGS = @CPPFLAGS@ + +# enforce -pthread on systems for now, some systems seem not to pick +# it up automatically. --nenolod +LIBS = -pthread @LIBS@ @AUDACIOUS_LIBS@ +CFLAGS = -pthread @CFLAGS@ @AUDACIOUS_CFLAGS@ + +default: all + +BASE_SRCS = audtool.c + +SRCS = ${BASE_SRCS} + +OBJS = ${SRCS:.c=.o} + +all: audtool + +build: all + +audtool: $(OBJS) + ${CC} ${CFLAGS} -o $@ ${OBJS} ${LIBS} + +install: + $(INSTALL) -m 755 -d $(DESTDIR)$(PREFIX) + $(INSTALL) -m 755 -d $(DESTDIR)$(PREFIX)/bin + $(INSTALL) -m 755 -c $(BIN) $(DESTDIR)$(PREFIX)/bin + +.c.o: + ${CC} ${CPPFLAGS} ${CFLAGS} -c $< -o $@ + +clean: + ${RM} -f *.o audtool.core core audtool + +distclean: clean + ${RM} -f Makefile config.h config.status config.log