2012-05-16 16:22:57 +02:00
|
|
|
CLEAN_TARGETS += clean-libi3
|
|
|
|
|
|
|
|
libi3_SOURCES := $(wildcard libi3/*.c)
|
|
|
|
libi3_HEADERS := $(wildcard libi3/*.h)
|
2012-08-05 21:36:49 +02:00
|
|
|
libi3_CFLAGS = $(PANGO_CFLAGS)
|
2012-07-22 22:04:14 +02:00
|
|
|
libi3_LIBS =
|
2012-05-16 16:22:57 +02:00
|
|
|
|
|
|
|
libi3_OBJECTS := $(libi3_SOURCES:.c=.o)
|
|
|
|
|
|
|
|
|
|
|
|
libi3/%.o: libi3/%.c $(libi3_HEADERS)
|
|
|
|
echo "[libi3] CC $<"
|
2012-09-03 14:55:27 +02:00
|
|
|
$(CC) $(I3_CPPFLAGS) $(XCB_CPPFLAGS) $(CPPFLAGS) $(libi3_CFLAGS) $(I3_CFLAGS) $(CFLAGS) -c -o $@ $<
|
2012-05-16 16:22:57 +02:00
|
|
|
|
|
|
|
libi3.a: $(libi3_OBJECTS)
|
|
|
|
echo "[libi3] AR libi3.a"
|
2012-12-16 18:40:56 +01:00
|
|
|
$(AR) rcs $@ $^ $(libi3_LIBS)
|
2012-05-16 16:22:57 +02:00
|
|
|
|
|
|
|
clean-libi3:
|
|
|
|
echo "[libi3] Clean"
|
2012-09-20 10:55:26 +02:00
|
|
|
rm -f $(libi3_OBJECTS) libi3/libi3.a libi3.a
|