github.com/schwarzm/garden-linux@v0.0.0-20150507151835-33bca2147c47/old/linux_backend/src/wsh/Makefile (about) 1 OPTIMIZATION?=-O0 2 DEBUG?=-g -ggdb -rdynamic 3 4 all: wshd wsh 5 6 clean: 7 rm -f *.o clone wshd wsh 8 9 install: all 10 cp wshd wsh ../../skeleton/bin/ 11 12 .PHONY: all clean 13 14 wshd: wshd.o barrier.o un.o util.o msg.o pwd.o pty.o 15 $(CC) -static -o $@ $^ -lutil 16 17 wsh: wsh.o pump.o un.o util.o msg.o pwd.o 18 $(CC) -static -o $@ $^ -lutil 19 20 %.o: %.c 21 $(CC) -c -Wall $(OPTIMIZATION) $(DEBUG) $(CFLAGS) $< 22 23 -include Makefile.dep 24 25 dep: 26 $(CC) -MM *.c > Makefile.dep