]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
temp build test func
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 4 Sep 2015 20:04:15 +0000 (15:04 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 4 Sep 2015 20:04:21 +0000 (15:04 -0500)
libs/libks/Makefile

index 250280766f4bcca6d1d38734e6e31318ed88a721..84a089a83b84a52a3f90e2bb7107a31a8f1f54f5 100644 (file)
@@ -20,7 +20,15 @@ $(MYLIB): $(OBJS) $(HEADERS) $(SRC)
        ranlib $(MYLIB)
 
 %.o: %.c $(HEADERS)
-       $(CC) $(CC_CFLAGS) $(CFLAGS) -c $< -o $@
+       $(CC) $(CC_CFLAGS) $(CFLAGS) $(CXFLAGS) -c $< -o $@
 
-clean:
+test-clean:
+       rm -f test/testpools
+
+clean: test-clean
        rm -f *.o src/*.o libks.a *~ src/*~ src/include/*~
+
+test/testpools: $(MYLIB) test/testpools.c
+       $(CC) $(CXFLAGS) test/testpools.c -Isrc/include/ libks.a -o test/testpools
+
+test: test/testpools