CC = gcc
SHELL = /bin/sh
CFLAGS = -O2 -W -Wall -pedantic -pedantic-errors -ansi -ggdb
LDFLAGS = $(CFLAGS)

getAbsPath: getAbsPath.o
	$(CC) $(LDFLAGS) -o $@ getAbsPath.o

getAbsPath.o: getAbsPath.c
	$(CC) -c $(CFLAGS) -o $@ getAbsPath.c

install:
	$(SHELL) -c "cp getAbsPath /bin"
	$(SHELL) -c "chmod 755 /bin/getAbsPath"

uninstall:
	rm -f /bin/getAbsPath

clean:
	rm -f getAbsPath getAbsPath.o core
