
# Include debugging symbols (-g) or optimize code (-O or -O2).

DEBUG=-g

# CS248 software directory.

BASEDIR=/usr/class/cs248/support

# The object files comprising the application code.
# Use spaces to separate multiple files.

OBJS=leved.o

# The name of the executable.

TARGET=leved.$(HOSTTYPE)


# LINKING.

$(TARGET): $(OBJS) Makefile
	gcc $(DEBUG) -o $@ $(OBJS) -L$(BASEDIR)/lib/$(HOSTTYPE) \
	$(CS248_LIBS) -lxsupport -lXm -lXt -lX11 -lm


# COMPILATION.

.c.o:
	gcc $(CS348B_INCLUDE) -I$(BASEDIR)/include/ $(DEBUG) -c -o $@ $*.c


# CLEANUP.

clean:
	rm -f $(OBJS) $(TARGET)
