diff options
author | Mattias Andrée <maandree@kth.se> | 2018-08-12 22:12:41 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2018-08-12 22:19:35 +0200 |
commit | 43dae84fa5dc5050a99e0b15890bc2bb27c05170 (patch) | |
tree | ba286d7fa97e513168634f2223b53e9d7f902689 /Makefile | |
parent | Add memrmem, strrstr, and strrcasestr (diff) | |
download | libsimple-43dae84fa5dc5050a99e0b15890bc2bb27c05170.tar.gz libsimple-43dae84fa5dc5050a99e0b15890bc2bb27c05170.tar.bz2 libsimple-43dae84fa5dc5050a99e0b15890bc2bb27c05170.tar.xz |
Improve makefile
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,8 +1,7 @@ .POSIX: -CFLAGS = -std=c99 -Wall -Wextra -O2 $(CPPFLAGS) -CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -LDFLAGS = -s +CONFIGFILE = config.mk +include $(CONFIGFILE) OBJ =\ allocn.o\ @@ -56,15 +55,16 @@ OBJ =\ libsimple.o all: libsimple.a -$(OBJ): libsimple.h +$(OBJ): $(@:.o=.c) libsimple.h libsimple.a: $(OBJ) $(AR) rc $@ $? $(AR) -s $@ clean: - -rm -r -- *.o libsimple.a libsimple.so libsimple.so.* + -rm -rf -- *.o *.su *.a *.so *.so.* *.gch *.gcda *.gcno *.gcov *.lo -.SUFFIXES: .c.o +.SUFFIXES: +.SUFFIXES: .o .c .PHONY: all clean |