# Generated automatically from Makefile.in by configure.
# makefile for ImpCre

include ../MakeLoc

CC = gcc
RM = rm -f

CFLAGS = -g -O2
DEBUG = 
LDFLAGS = 


INSTALL = /usr/bin/install -c

IMPINC = ../Include/Imperium.h

INCFILES = $(IMPINC)

ALLFLAGS = $(DEBUG) $(CFLAGS) -DIMP_BASE_REV="\"$(IMP_BR)\""

.c.o:
	$(CC) -c $(ALLFLAGS) -o $*.o $<

all:    ImpCre

ImpCre: ImpCre.o
	$(CC) $(LDFLAGS) $(ALLFLAGS) -o ImpCre ImpCre.o

ImpCre.o: ImpCre.c $(INCFILES) ../config.h

install: ImpCre
	$(INSTALL) -d -g $(IMP_GRP) -m 755 -o $(IMP_OWN) $(IMP_DEST)/impcre
	$(INSTALL) -g $(IMP_GRP) -m 700 -o $(IMP_OWN) ImpCre $(IMP_DEST)/impcre
	$(INSTALL) -g $(IMP_GRP) -m 700 -o $(IMP_OWN) default.sh $(IMP_DEST)/impcre
	$(INSTALL) -g $(IMP_GRP) -m 700 -o $(IMP_OWN) bigworld.sh $(IMP_DEST)/impcre

clean:
	-$(RM) ImpCre ImpCre.o

