Print this page
10618 want CTF in audio utilities

@@ -25,21 +25,30 @@
 # Makefile for cmd/audio/audioctl
 
 PROG= audioctl
 
 include ../../Makefile.cmd
+include ../../Makefile.ctf
 
+SRCS= audioctl.c
+OBJS= $(SRCS:.c=.o)
+
 LDLIBS += -ldevinfo
 CFLAGS += $(CCVERBOSE)
 CERRWARN += -_gcc=-Wno-uninitialized
 
 .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