head	1.2;
access;
symbols;
locks
	david:1.2; strict;
comment	@# @;


1.2
date	97.06.13.08.42.50;	author david;	state Exp;
branches;
next	1.1;

1.1
date	97.06.04.02.59.13;	author david;	state Exp;
branches;
next	;


desc
@Initial Version.
@


1.2
log
@Fixed to compile on Linux (Unix)?
Now requires the xasm-devel package.
@
text
@#This controls the compilation of the Intel 8048 Assembler program
#
# $Log: Makefile,v $
# Revision 1.1  1997/06/04 02:59:13  david
# Initial revision
#
#

#Definitions
INCLUDES = /usr/include/xasm
CFLAGS = -O -I$(INCLUDES)
YFLAGS = -d
LIBS = /usr/lib/libxasm.a
YACC = bison

#How to compile the program
OBJS = model.o proper.o propery.o properl.o

xasm48 : $(OBJS) version.o
	$(CC) $(CFLAGS) $(OBJS) version.o $(LIBS) -o xasm48

xasm48.exe :
	$(MAKE) "CFLAGS=-DMSDOS -dos" xasm48
	mv xasm48 xasm48.exe

backup : clean
	cd ..; tar cvfz xasm48.tar.gz xasm48

clean :
	rm -f *.o properl.c propery.c propery.h xasm48

proper.o : $(INCLUDES)/xasm.h
properl.o : propery.h
propery.c propery.h : propery.y
	$(YACC) -d propery.y -o propery.c

propery.o : propery.c $(INCLUDES)/symbols.h

version.o : $(OBJS)
	echo "char *Version_Date = \"`date '+%D %T'`\";" > version.c
	$(CC) $(CFLAGS) -c version.c
	rm version.c
@


1.1
log
@Initial revision
@
text
@d3 4
a6 1
# $Log$
d10 2
a11 2
i = ../lib
CFLAGS = -O -I$i
d13 2
a14 1
LIBS = ../lib/xasm8lib.a
d19 1
a19 23
.l~.c :
	$(GET) $<
	$(LEX) $*.l
	mv lex.yy.c $*.c
	rm -f $*.l

.l.c :
	$(LEX) $*.l
	mv lex.yy.c $*.c

.y~.c :
	$(GET) $<
	$(YACC) $(YFLAGS) $*.y
	mv y.tab.c $*.c
	mv y.tab.h $*.h
	rm -f $*.y

.y.c :
	$(YACC) $(YFLAGS) $*.y
	mv y.tab.c $*.c
	mv y.tab.h $*.h

xasm48 : $(OBJS) $(LIBS) version.o
d26 2
a27 2
$(LIBS) :
	cd ../lib; make
d29 2
a30 2
arc :
	arc a Xasm48.arc Makefile *.doc *.[chly]
d32 4
a35 2
backup : 
	tar ctvf ../Xasm48.tar *.doc error.* Makefile *.[chly]
d37 1
a37 6
cleanup :
	rm -f *.o properl.[cl] propery.[cy]

proper.o : $i/xasm.h
properl.o : propery.h
propery.h propery.o : propery.c $i/symbols.h
d39 1
a39 1
version.o : $(OBJS) $(LIBS)
@
