CPP = gcc 
OBJ = testmain.o hash.o
LINKOBJ = testmain.o hash.o
BIN = hash
CXXFLAGS = -ansi -pedantic -Wall 
RM = rm -f 

all: $(BIN) 

clean:
	${RM} $(OBJ) $(BIN) 

$(BIN): $(OBJ)
	$(CPP) $(LINKOBJ) -o $(BIN) $(LIBS) 

hash.o: hash.c
	$(CPP) -c hash.c -o hash.o $(CXXFLAGS) 

testmain.o: testmain.c
	$(CPP) -c testmain.c -o testmain.o $(CXXFLAGS)
