Makefile (567B)
1 DESTDIR := `realpath .` 2 export DESTDIR 3 4 install: cwalk hashmap 5 make DESTDIR=`realpath .` -C liblash install 6 install -m0644 -v hashmap.c/*.h -t $(DESTDIR)/include 7 8 cwalk: 9 make -C cwalk all 10 install -vm0644 cwalk/build/usr/local/lib/*.so -t $(DESTDIR)/lib/ 11 install -vm0644 cwalk/build/usr/local/lib/*.a -t $(DESTDIR)/lib/ 12 install -vm0644 cwalk/build/usr/local/include/*.h -t $(DESTDIR)/include/ 13 14 hashmap: 15 install -m0755 -v -d $(DESTDIR)/lib 16 $(CC) $(CFLAGS) -c hashmap.c/hashmap.c -o hashmap.c/hashmap.o 17 $(AR) rcs $(DESTDIR)/lib/libhashmap.a hashmap.c/hashmap.o