.PHONY: all install all: bash-gitonly pam_oath_key.so auth-keys-gen nargv/argvt.o: nargv/nargv.c gcc -c nargv/nargv.c -o nargv/argvt.o bash-gitonly: nargv/argvt.o bash-gitonly.c gcc bash-gitonly.c nargv/argvt.o -I . -L/usr/server/postgresql/lib -I/usr/server/postgresql/include -lpq -o bash-gitonly pam_oath_key.so: pam_oath_key.c gcc pam_oath_key.c -I/usr/system/include/ -I/usr/server/postgresql/include/ -L/usr/server/postgresql/lib/ -L/usr/libraries/lib/ -shared -lpam -lpq -loath -fPIC -o pam_oath_key.so auth-keys-gen: authKeysPg.c gcc authKeysPg.c -o auth-keys-gen -L/usr/server/postgresql/lib -I/usr/server/postgresql/include -lpq install: all cp pam_oath_key.so /lib/security cp pam_oath_key.so /usr/libraries/lib/security/ cp bash-gitonly /srv/git/bin cp auth-keys-gen /srv/etc/auth-git-keys