Print this page
10618 want CTF in audio utilities

@@ -25,11 +25,15 @@
 #
 
 PROG=   audiorecord
 
 include ../../Makefile.cmd
+include ../../Makefile.ctf
 
+SRCS= audiorecord.c
+OBJS= $(SRCS:.c=.o)
+
 INCLUDES += -I../include
 
 CPPFLAGS += $(INCLUDES)
 
 LDLIBS += -laudio -lm

@@ -43,12 +47,17 @@
 
 .KEEP_STATE:
 
 all: $(PROG)
 
+$(PROG): $(OBJS)
+        $(LINK.c) -o $@ $(OBJS) $(LDFLAGS) $(LDLIBS)
+        $(POST_PROCESS)
+
 install: all $(ROOTPROG)
 
 clean:
+        $(RM) $(OBJS)
 
 lint:   lint_PROG
 
 include ../../Makefile.targ