# Generated by makegen....

TARGET = smash
CFILES = builtins.c execute.c getinput.c main.c
HFILES = smash.h
OBJECTS = builtins.o execute.o getinput.o main.o

CC = gcc
CFLAGS = -O6 -Wall $(INCDIR)

#undefine if you don't have getline. (can get from cse.unl.edu; pub/mgleason) 
#LIBS = -lgetline 
LIBDIR =  
INCDIR =  

INSTALLDIR = /usr/local/bin

all: $(TARGET)

$(TARGET): $(HFILES) $(OBJECTS) $(CFILES) 
	$(CC) $(CFLAGS) -o $(TARGET) $(OBJECTS) $(LIBDIR) $(LIBS)
	strip $(TARGET)

clean:
	rm -f a.out core *~ \#* *.bak $(TARGET) $(OBJECTS)

install:
	install -s -m 755 $(TARGET) $(INSTALLDIR)
