bgfx/3rdparty/fcpp/makefile

62 lines
1.6 KiB
Makefile
Raw Normal View History

2012-04-04 07:30:07 +04:00
##############################################################################
## FREXXWARE
##############################################################################
##
## Project: Frexx C Preprocessor
## $Source: /home/user/start/cpp/RCS/makefile,v $
## $Revision: 1.3 $
## $Date: 1994/06/02 09:11:24 $
## $Author: start $
## $State: Exp $
## $Locker: $
##
##############################################################################
## $Log: makefile,v $
# Revision 1.3 1994/06/02 09:11:24 start
# Now uses 'gcc' and -O!
#
# Revision 1.2 1993/11/11 07:16:39 start
# New stuff
#
# Revision 1.1 1993/11/03 09:19:28 start
# Initial revision
#
##
##############################################################################
# Frexx PreProcessor Makefile
2018-12-09 03:40:58 +03:00
DEFINES = -Dunix -Dpdc -DUNIX -DDEBUG
DEBUGFLAG = -g
LIB = libfpp.a
CPP = fpp
FILECPP = fcpp
CFLAGS = $(DEBUGFLAG) $(DEFINES)
ARFLAGS = rv
O = o
OBJS = cpp1.$(O) cpp2.$(O) cpp3.$(O) cpp4.$(O) cpp5.$(O) cpp6.$(O)
FILEOBJS = $(OBJS) usecpp.$(O)
2012-04-04 07:30:07 +04:00
all: $(FILECPP)
2018-12-09 03:40:58 +03:00
$(LIB) : $(OBJS)
$(AR) $(ARFLAGS) $@ $(OBJS)
2012-04-04 07:30:07 +04:00
2018-12-09 03:40:58 +03:00
$(CPP) : usecpp.c $(LIB)
$(CC) $(CFLAGS) -o $@ $< -L. -lfpp
2012-04-04 07:30:07 +04:00
$(FILECPP) : $(FILEOBJS)
$(CC) $(FILEOBJS) -o $(FILECPP)
2018-12-09 03:40:58 +03:00
.c.$(O):
2012-04-04 07:30:07 +04:00
$(CC) $(CFLAGS) -c $<
clean :
2018-12-09 03:40:58 +03:00
rm -f *.$(O) $(FILECPP) $(LIB) $(CPP)
2012-04-04 07:30:07 +04:00
tgz:
rm -f makefile*~
(dir=`pwd`;name=`basename $$dir`;echo Creates $$name.tar.gz; cd .. ; \
tar -cf $$name.tar `ls $$name/*.[ch] $$name/*.exp $$name/*.fd $$name/makefile*` ; \
gzip $$name.tar ; chmod a+r $$name.tar.gz ; mv $$name.tar.gz $$name/)