--- a/Makefile
+++ b/Makefile
@@ -3,26 +3,27 @@
 INCLUDES=-I$(ROOTDIR)/include -I$(ROOTDIR)/user/lantronix/libcp
 LDFLAGS=-static -g -fPIC -lshout -lvorbis -logg -lpthread -lconfig -lcp -lm
 LIBRARIES=-L$(ROOTDIR)/user/lantronix/libcp -L$(ROOTDIR)/lib
-SOURCES=oggs_app.c rs232.c config.c 
+SOURCES=oggs_app.c rs232.c config.c gen_playlist.c use_sighttpd.c checkconfig.c
 OBJECTS=$(SOURCES:.c=.o)
 
-all: $(SOURCES) oggs_app gen_playlist use_sighttpd
+all: $(SOURCES) oggs_app gen_playlist use_sighttpd checkconfig
 	
-oggs_app: $(OBJECTS) 
-	$(CC) $(OBJECTS) $(LIBRARIES) $(LDFLAGS) -o $@
+oggs_app: oggs_app.o rs232.o config.o
+	$(CC) oggs_app.o rs232.o config.o $(LIBRARIES) $(LDFLAGS) -o $@
 
-gen_playlist:
-	$(CC) $(INCLUDES) $(CFLAGS) $(LIBRARIES)  gen_playlist.c -o $@
+checkconfig: checkconfig.o
+	$(CC) checkconfig.o $(LIBRARIES) $(LDFLAGS) -o $@
 
+gen_playlist: gen_playlist.o
+	$(CC) gen_playlist.o $(LIBRARIES) $(LDFLAGS) -o $@
 
-use_sighttpd:
-	$(CC) $(INCLUDES) $(CFLAGS) $(LIBRARIES) use_sighttpd.c -lconfig -o $@
-	
+use_sighttpd: use_sighttpd.o
+	$(CC) use_sighttpd.o $(LIBRARIES) $(LDFLAGS) -o $@
 
 .c.o:
 	$(CC) -c $(CFLAGS) $(INCLUDES) $< -o $@
 
 clean:
-	rm -rf *.o oggs_app.gdb oggs_app gen_playlist.gdb gen_playlist use_sighttpd.gdb use_sighttpd
+	rm -rf *.o oggs_app.gdb oggs_app gen_playlist.gdb gen_playlist use_sighttpd.gdb use_sighttpd checkconfig checkconfig.gdb
 
 romfs: