# Makefile for filecmd

#### Start of system configuration section. ####

CC = gcc
INSTALL = install -c
INSTALL_PROGRAM = ${INSTALL}
INSTALL_DATA = ${INSTALL} -m 644
APPLI_SRC   = .

prefix = ../..
exec_prefix = ${prefix}

CFLAGS = -O3 

binprefix = 

#### End of system configuration section. ####

SHELL = /bin/sh

# This rule allows us to supply the necessary -D options
# in addition to whatever the user asks for.

vpath %.c $(APPLI_SRC)

all: filecmd.o file_test.o filecmd

filecmd: filecmd.c file_test.o Makefile
	${CC} ${CFLAGS} $@.c  -I.  -o $@ file_test.o

file_test.o:	file_test.c
	${CC} ${CFLAGS} -c  -I. -o file_test.o file_test.c 

clean:
	rm -f *.o core filecmd.exe

distclean: clean
	rm -f *.c~ Makefile~
