a simple test program for applet configuration stuff
[simple-launcher] / Makefile
index cf18254..c5e0a35 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ GTKLIBS := $(shell pkg-config gtk+-2.0 --libs)
 DBUSCFLAGS := $(shell pkg-config dbus-1 --cflags)
 DBUSLIBS := $(shell pkg-config dbus-1 --libs)
 
-CXXFLAGS=-Wall -MMD $(GTKCFLAGS) $(DBUSCFLAGS)
+CXXFLAGS=-Wall -g -MMD $(GTKCFLAGS) $(DBUSCFLAGS)
 #LDFLAGS = -module -avoid-version
 LDFLAGS = -shared
 LIBS = -lstdc++
@@ -13,11 +13,16 @@ TARGET=simple-launcher.so
 
 all: $(TARGET)
 
+tests: test test1
+
 $(TARGET): simple-launcher.o launcher-item.o sla-list.o
        $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
 
 test: test.o launcher-item.o
-       g++ -o $@ $^ $(GTKLIBS) $(DBUSLIBS)  $(LIBS) -losso
+       g++ -o $@ $^ $(GTKLIBS) $(DBUSLIBS) $(LIBS) -losso
+
+test1: test1.o sla-list.o launcher-item.o
+       g++ -g -o $@ $^ $(GTKLIBS) $(DBUSLIBS) $(LIBS)
 
 clean:
        rm -f *.d *.o $(TARGET) test