head     1.4;
branch   ;
access   ;
symbols  alpha:1.2;
locks    ; strict;
comment  @# @;


1.4
date     90.07.13.16.21.11;  author mjk;  state Exp;
branches ;
next     1.3;

1.3
date     90.06.14.15.08.48;  author mjk;  state Exp;
branches ;
next     1.2;

1.2
date     90.06.14.12.05.20;  author mjk;  state Exp;
branches ;
next     1.1;

1.1
date     90.06.04.15.28.30;  author mjk;  state Exp;
branches ;
next     ;


desc
@make for the xserver extensions
@


1.4
log
@added -DMITMISC
@
text
@
#
#  xserver - a native X11 release 4 server for Sun 3/50's
#    Project Lunchmeat
#    May, 1990
#    $Date: 90/06/14 15:08:48 $
#    $Revision: 1.3 $
#
#  Makefile - Makefile for extensions
#

#
# $Log:	Makefile,v $
# Revision 1.3  90/06/14  15:08:48  mjk
# changed file description
# 
# Revision 1.2  90/06/14  12:05:20  mjk
# the Makefile now has a header and support OPTIMIZE and DEBUG
# 
# Revision 1.12  90/06/13  13:58:35  mjk
# MAJOR CHANGES: now supports OPTIMIZE and DEBUG compiling
# 
#

HOWTOCOMPILE = OPTIMIZE
HOW = $(HOWTOCOMPILE)

SHELL = /bin/sh

TOP = /brazos/petero/projects/xkernel/xserver/User

TOP_INCLUDES = -I$(TOP)
CURRENT_DIR = ./User/extensions/server

AR = ar cq
CC = cc
GET = co
LN = ln -s
MAKE = make
MV = mv
CP = cp
RANLIB = ranlib
RANLIBINSTFLAGS =
RM = rm -f
STD_INCLUDES =
STD_CPP_DEFINES =
STD_DEFINES = -DINCLUDE_ALLOCA_H -DSHAPE -DMITMISC
EXTRA_LOAD_FLAGS =
EXTRA_LIBRARIES =
INCLUDE_X11 = -I/usr/include/X11
INCLUDE_XKERNEL =
INCLUDESRC = $(INCLUDE_X11) $(INCLUDE_XKERNEL)

DEBUGFLAGS =
OPTIMIZEFLAGS = -O4 -DNDEBUG
CCOPTIONS =
ALLINCLUDES = $(STD_INCLUDES) $(TOP_INCLUDES) $(INCLUDES) $(EXTRA_INCLUDES)
ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(PROTO_DEFINES) $(DEFINES) $(COMPATFLAGS)

CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)

RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak DEBUG/*.o OPTIMIZE/*.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut *%

CC = cc

SRCS = shape.c mitmisc.c
OBJS = $(SRCS:%.c=$(HOW)/%.o)

INCLUDES = -I. -I../include $(INCLUDESRC)

DEBUG/%.o : %.c
	$(RM) $@@
	$(CC) -c $(CFLAGS) $(DEBUGFLAGS) $< -o $@@

OPTIMIZE/%.o : %.c
	$(RM) $@@
	$(CC) -c $(CFLAGS) $(OPTIMIZEFLAGS) $< -o $@@

all: libext.a

libext.a: $(OBJS)
	$(RM) $@@
	$(AR) $@@ $(OBJS)
	$(RANLIB) $@@

clean::
	$(RM_CMD) \#*

$(SRCS) $(HDRS) :
	$(GET) $@@


@


1.3
log
@changed file description
@
text
@d6 2
a7 2
#    $Date: 90/06/14 12:05:20 $
#    $Revision: 1.2 $
d14 3
d47 1
a47 1
STD_DEFINES = -DINCLUDE_ALLOCA_H -DXDMCP -DSHAPE
d55 1
a55 1
OPTIMIZEFLAGS = -O2 -DNDEBUG
d66 2
a67 5
SHAPESRCS = shape.c
SHAPEOBJS = $(SHAPESRCS:%.c=$(HOW)/%.o)

SRCS = $(SHAPESRCS)
OBJS = $(SHAPEOBJS)
@


1.2
log
@the Makefile now has a header and support OPTIMIZE and DEBUG
@
text
@d6 2
a7 2
#    $Date: 90/06/13 13:58:35 $
#    $Revision: 1.12 $
d9 1
a9 1
#  Makefile - Makefile for dix
d13 4
a16 1
# $Log: Makefile,v $
@


1.1
log
@Initial revision
@
text
@d2 20
d48 2
a49 1
CDEBUGFLAGS =
d56 1
a56 1
RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut *%
d61 1
a61 1
SHAPEOBJS = shape.o
d68 8
a81 4

.c.o:
	$(RM) $@@
	$(CC) -c $(CFLAGS) $*.c
@
