[hackers] [swk] fix fPIC compilation || pancake

From: <hg_AT_suckless.org>
Date: Tue, 31 Aug 2010 22:34:31 +0000 (UTC)

changeset: 74:dd9792dc8644
tag: tip
user: pancake <pancake_AT_nopcode.org>
date: Wed Sep 01 00:31:19 2010 +0200
files: Makefile TODO
description:
fix fPIC compilation

diff -r 4b079764ae28 -r dd9792dc8644 Makefile
--- a/Makefile Wed Sep 01 00:26:27 2010 +0200
+++ b/Makefile Wed Sep 01 00:31:19 2010 +0200
@@ -1,4 +1,4 @@
-.PHONY: all t clean install
+.PHONY: all rmo t clean install
 
 -include config.mk
 
@@ -36,10 +36,13 @@
 config.mk: config.h
         cp config.def.mk config.mk
 
-clean:
+clean: rmo
         echo >swk.mk
         cd t && ${MAKE} clean
- rm -f swk.pc swk.mk libswk.a libswk.so ${OBJS} ${GI_OBJS}
+ rm -f swk.pc swk.mk libswk.a libswk.so ${GI_OBJS}
+
+rmo:
+ rm -f ${OBJS}
 
 install:
         mkdir -p ${DESTDIR}/${INCDIR}
@@ -63,12 +66,12 @@
 
 shared: libswk.so
 
-libswk.so: config.mk ${OBJS} ${GI_OBJS}
+libswk.so: rmo config.mk ${OBJS} ${GI_OBJS}
         ${CC} ${CFLAGS} -fPIC -shared ${OBJS} ${GI_SRCS} -o libswk.so
 
 swk.o: config.mk
 
-libswk.a: config.mk ${OBJS} ${GI_OBJS}
+libswk.a: rmo config.mk ${OBJS} ${GI_OBJS}
         rm -f libswk.a
         ar qcvf libswk.a ${OBJS} ${GI_OBJS}
         echo SWKINCS+=-I${PREFIX}/include > swk.mk
diff -r 4b079764ae28 -r dd9792dc8644 TODO
--- a/TODO Wed Sep 01 00:26:27 2010 +0200
+++ b/TODO Wed Sep 01 00:31:19 2010 +0200
@@ -1,5 +1,7 @@
 TODO
 ====
+ * install and load ttf font. allow to override font path
+ * define default image path in config.h
   * change cursor
   * change window title in runtime?
   * how to schedule a function to be executed in N ns?
@@ -19,13 +21,6 @@
   * add support to resize images (scaling)
   * only focus buttons and entries (input widgets)
     - will make the design inconsistent and the code more complex
- * allow to load images from memory instead of files
- * define default image path in config.h
-
-Transitions
-===========
- * transitions (to change from one window to another)
- - this can be done in a simple loop() calling swk_update and using colpos
 
 Events
 ======
Received on Wed Sep 01 2010 - 00:34:31 CEST

This archive was generated by hypermail 2.2.0 : Wed Sep 01 2010 - 00:36:05 CEST