##############################################################################
##############################################################################
##
## COPYRIGHT (C) 1998 By Arthur Naseef
##
## This file is covered under the GNU General Public License Version 2.  For
##  more information, see the file COPYING.
##
##
## FILE: Makefile
##
## SCCS ID: @(#) Makefile 1.1
##
## DESCRIPTION:
##	- This file contains the dependencies and build rules for the tools
##	  delivered with the overlay filesystem.
##
## NOTES:
##	- run "make all" to build the tools.
##
##	- There currently is no installation for these tools.
##
##
## REVISION HISTORY:
##
## DATE		AUTHOR		DESCRIPTION
## ==========	===============	==============================================
## 03/11/1998	ARTHUR N.	Added to source code control.
##
##############################################################################
##############################################################################

##
## MACRO DEFINITIONS
##

INC=../include

SRC_FILES=\
	view_stg.c

OBJ_FILES=\
	view_stg.o

PROG_FILES=\
	view_stg


### CFLAGS

CFLAGS=$(COPTS) -Wall -O2 -I$(INC)



##############################################################################
##############################################################################
##
## STANDARD TARGETS
##

.PHONY: all bak fresh modules_install install


all:	$(PROG_FILES)

fresh:	clean all



##############################################################################
##############################################################################
##
## PROGRAM TARGETS
##

view_stg: view_stg.o
	@echo "Compiling view_stg"
	@$(CC) $(CFLAGS) -o view_stg view_stg.o

view_stg.o: view_stg.c
	@echo "Compiling view_stg.o"
	@$(CC) -c $(CFLAGS) view_stg.c


##############################################################################
##############################################################################
##
## MISCELLANEOUS TARGETS
##

clean:
	@/bin/rm -f $(OBJ_FILES)

dist-clean: clean
	@/bin/rm -f $(PROG_FILES)



##############################################################################
##############################################################################
##
## Suffixes
##

.SUFFIXES: .c .i .o

.c.o:
	@echo "Compiling $*.o"
	@$(CC) $(CFLAGS) -c $*.c

.c.i:
	@echo "Compiling $*.i"
	@$(CC) $(CFLAGS) -E $*.c >$*.i
