
# Name of target for make
TARGET=which

# Place to install target
INSTALLDIR=/bin

# Compilerflags
CFLAGS=-O2

# Linkerflags
LDFLAGS=-s

OBJ=$(TARGET).o

$(TARGET).exe: $(OBJ)
	$(CC) -o $@ $(LDFLAGS) $(OBJ)

install: $(TARGET).exe
	cp $(TARGET).exe $(INSTALLDIR)

clean:
	rm $(TARGET).exe $(TARGET).o

