## Declarations

## The output file name (not including path)
OUTNAME = launch

## Define type "SINGLE", "MULTI", or "PROJECT"
TYPE = "SINGLE"

## The directories for sources, (temp) objects, and binary output(s)
BINDIR = .
SRCDIR = src
OBJDIR = o

## What COMPILE should do.
COMPILE = gcc -m32 -c -o
CFLAGS = -std=c99 -g3
INCLUDE = -I./usr/include -I./$(SRCDIR)

## What LINK should do.
LINK = gcc -m32 -o
LDFLAGS = 
LIB = -L/usr/lib -L/usr/X11R6/lib

## The full path to the output file
MAIN = $(BINDIR)/$(OUTNAME)

## The HDR, SRC, and OBJ lists generated by AutoBake

## The rules section.

## User defined make functions


# MODIFY BELOW THIS LINE WITH GREAT CARE!
# ---------------------------------------

SRC = \
  src/launch.c \
  ##################

HDR = \
  src/version.h \
  ##################

OBJ = \
  $(OBJDIR)/launch.o \
  ##################

all: $(MAIN) $(HDR) $(OBJ) $(SRC)

################################## Rules Begin

$(MAIN): $(OBJ) $(HDR) $(SRC)
	@echo
	@echo "Linking $(OUTNAME)"
	$(LINK) $(MAIN) $(OBJ) $(LDFLAGS) $(LIB)
	$(POST)

$(OBJDIR)/launch.o: $(SRCDIR)/launch.c $(HDR)
	@echo
	@echo "Compiling launch.o"
	$(COMPILE) $(OBJDIR)/launch.o $(SRCDIR)/launch.c $(CFLAGS) $(INCLUDE)

################################## Rules End

semiclean:
	@rm -f $(OBJ)
	@rm -f *~ */*~ */*/*~ */*/*/*~ tmp.mak

strip:
	@strip $(MAIN)
	@make semiclean

clean:
	rm -f $(MAIN) 
	rm -f $(OBJ)
	@rm -f *.kdevelop.pcs *.kdevses
	@rm -f *~ */*~ */*/*~ */*/*/*~ tmp.mak

distclean: clean
	rm -f *.kdevelop.pcs *.kdevelop.filelist *.kdevses

update:
	autobake bake
