# This is the makefile for ibsh 0.3e CC = gcc OBJECTS = main.o command.o jail.o execute.o config.o misc.o antixploit.o delbadfiles.o ibsh: ${OBJECTS} ibsh.h ${CC} -o ibsh ${OBJECTS} main.o: main.c ibsh.h ${CC} -c main.c command.o: command.c ibsh.h ${CC} -c command.c jail.o: jail.c ibsh.h ${CC} -c jail.c execute.o: execute.c ibsh.h ${CC} -c execute.c config.o: config.c ibsh.h ${CC} -c config.c misc.o: misc.c ibsh.h ${CC} -c misc.c antixploit.o: antixploit.c ibsh.h ${CC} -c antixploit.c delbadfiles.o: delbadfiles.c ibsh.h ${CC} -c delbadfiles.c ibsh_install: cp ./ibsh ${PREFIX}/bin/ mkdir ${PREFIX}/etc/ibsh mkdir ${PREFIX}/etc/ibsh/cmds mkdir ${PREFIX}/etc/ibsh/xtns cp ./globals.cmds ${PREFIX}/etc/ibsh/ cp ./globals.xtns ${PREFIX}/etc/ibsh/ ibsh_uninstall: rm -rf /etc/ibsh/globals.cmds rm -rf /etc/ibsh/globals.xtns rm -rf /etc/ibsh/cmds/*.* rm -rf /etc/ibsh/xtns/*.* rmdir /etc/ibsh/cmds rmdir /etc/ibsh/xtns rmdir /etc/ibsh rm -rf /bin/ibsh clean: rm -rf ibsh rm -rf *.o # 13:49 2005.04.06.