www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1999/02/27/01:52:12

Message-Id: <3.0.6.32.19990227014203.0084f140@pop.globalserve.net>
X-Sender: derbyshire AT pop DOT globalserve DOT net
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.6 (32)
Date: Sat, 27 Feb 1999 01:42:03 -0500
To: pgcc AT delorie DOT com
From: Paul Derbyshire <pderbysh AT usa DOT net>
Subject: Re:
In-Reply-To: <19990225235354.D20417@cerebro.laendle>
References: <3 DOT 0 DOT 6 DOT 32 DOT 19990224205009 DOT 008a76e0 AT pop DOT globalserve DOT net>
<19990224152037 DOT A1183 AT cerebro DOT laendle>
<3 DOT 0 DOT 6 DOT 32 DOT 19990224205009 DOT 008a76e0 AT pop DOT globalserve DOT net>
Mime-Version: 1.0
Reply-To: pgcc AT delorie DOT com

At 11:53 PM 2/25/99 +0100, you wrote:
>*grumble* I sent mail at the wrong address when requesting the help text
>for the pgcc webpages. Do all people have to emphasize my dumbness again
>and again??
>
>;)

# makefile
# Omega Foundation Classes (c) 1999, 2000 PGD

COMPILER = gcc
ifdef DJDIR
  # We are using DJGPP
  LFLAGS = -lstdcxx
  EXECUTABLE_EXTENSION = .exe
  COPY = copy
  RM = del
  MKDIR = md
  RMDIR = deltree
  INCLUDEPATH = $(addsuffix /include,$(DJDIR))
  LIBPATH = $(addsuffix /lib,$(DJDIR))
else
  LFLAGS = -lstdc++
  EXECUTABLE_EXTENSION =
  COPY = cp
  RM = rm
  MKDIR = mkdir
  RMDIR = rmdir
  INCLUDEPATH = usr/include
  LIBPATH = usr/lib
endif

WFLAGS = -Wall -Werror
OFLAGS = -O2
LFLAGS_CONFIGURE =
DEBUGFLAGS =
ARCHIVER = ar
ARFLAGS = -rvs
CONFIGURE_EXECUTABLE = $(addsuffix
$(EXECUTABLE_EXTENSION),configure/configure)
OBJECTS = obj/ofccoll.o obj/ofcex.o obj/ofclaunch.o obj/ofcnew.o obj/ofc.o \
  obj/ofcshrex.o obj/ofcsignal.o

all: configure obj/libofc.a install clean

obj/ofccoll.o: src/ofccoll.cc include/ofccoll.h \
 include/ofcsync.h include/ofcbgm.h \
 include/ofcthreadfn.h include/internal/_ofcsync.h \
 include/ofc.h \
 include/platform/macros.h \
 include/internal/unmacros.h
	$(COMPILER) -c src/ofccoll.cc -o obj/ofccoll.o $(WFLAGS) $(OFLAGS)
$(DEBUGFLAGS)

obj/ofcex.o: src/ofcex.cc include/ofcex.h include/ofc.h \
 include/platform/macros.h include/internal/unmacros.h \
 include/ofcsrex.h include/ofcshrex.h \
 include/ofcioex.h include/ofcdevex.h \
 include/ofcpipex.h include/ofclaex.h
	$(COMPILER) -c src/ofcex.cc -o obj/ofcex.o $(WFLAGS) $(OFLAGS) $(DEBUGFLAGS)

obj/ofclaunch.o: src/ofclaunch.cc include/ofclaunch.h \
 include/ofclaex.h include/ofcex.h \
 include/ofc.h include/platform/macros.h \
 include/internal/unmacros.h include/ofcsignal.h \
 src/platform/ofcvidset.cc
	$(COMPILER) -c src/ofclaunch.cc -o obj/ofclaunch.o $(WFLAGS) $(OFLAGS)
$(DEBUGFLAGS)

obj/ofcnew.o: src/ofcnew.cc include/ofcbgm.h \
 include/ofcthreadfn.h include/ofcnew.h \
 include/platform/macros.h
	$(COMPILER) -c src/ofcnew.cc -o obj/ofcnew.o $(WFLAGS) $(OFLAGS)
$(DEBUGFLAGS)

obj/ofc.o: src/ofc.cc include/ofcsignal.h \
 include/ofcex.h include/ofc.h \
 include/platform/macros.h include/internal/unmacros.h \
 include/ofcnop.h include/ofcthreadfn.h \
 src/platform/ofc.cc include/platform/macros.h
	$(COMPILER) -c src/ofc.cc -o obj/ofc.o $(WFLAGS) $(OFLAGS) $(DEBUGFLAGS)

obj/ofcshrex.o: src/ofcshrex.cc include/ofcshrex.h \
 include/ofcex.h include/ofc.h \
 include/platform/macros.h include/internal/unmacros.h \
 include/ofcsignal.h include/ofcthreadfn.h
	$(COMPILER) -c src/ofcshrex.cc -o obj/ofcshrex.o $(WFLAGS) $(OFLAGS)
$(DEBUGFLAGS)

obj/ofcsignal.o: src/ofcsignal.cc include/ofcsignal.h \
 include/ofcex.h include/ofc.h \
 include/platform/macros.h include/internal/unmacros.h \
 include/ofcpipex.h include/ofcdevex.h \
 include/ofcioex.h include/ofclaex.h
	$(COMPILER) -c src/ofcsignal.cc -o obj/ofcsignal.o $(WFLAGS) $(OFLAGS)
$(DEBUGFLAGS)

obj/libofc.a: $(OBJECTS)
	$(ARCHIVER) $(ARFLAGS) obj/libofc.a $(OBJECTS)

$(CONFIGURE_EXECUTABLE): configure/configure.cc configure/configure.h
	$(COMPILER) configure/configure.cc -o $(CONFIGURE_EXECUTABLE) $(WFLAGS)
$(OFLAGS) $(DEBUGFLAGS)

include/configure/ofcmacros.h: $(CONFIGURE_EXECUTABLE)
	$(CONFIGURE_EXECUTABLE) $(COMPILER)

include/configure/ofcremmacros.h: $(CONFIGURE_EXECUTABLE)
	$(CONFIGURE_EXECUTABLE) $(COMPILER)

configure: include/configure/ofcmacros.h include/configure/ofcremmacros.h

install:
	$(COPY) obj/libofc.a $(addsuffix /libofc.a,$(LIBPATH))
	$(MKDIR) $(addsuffix /ofc,$(INCLUDEPATH))
	$(MKDIR) $(addsuffix /ofc/internal,$(INCLUDEPATH))
	$(MKDIR) $(addsuffix /ofc/platform,$(INCLUDEPATH))
	$(MKDIR) $(addsuffix /ofc/configure,$(INCLUDEPATH))
	$(MKDIR) $(addsuffix /ofc/math,$(INCLUDEPATH))
	$(MKDIR) $(addsuffix /ofc/math/internal,$(INCLUDEPATH))
	$(foreach FILE,$(wildcard include/*.h),$(COPY) $(FILE) $(addsuffix
$(notdir FILE),$(addsuffix /ofc/,$(INCLUDEPATH)))
	$(foreach FILE,$(wildcard include/platform/*.h),$(COPY) $(FILE)
$(addsuffix $(notdir FILE),$(addsuffix /ofc/platform/,$(INCLUDEPATH)))
	$(foreach FILE,$(wildcard include/internal/*.h),$(COPY) $(FILE)
$(addsuffix $(notdir FILE),$(addsuffix /ofc/internal/,$(INCLUDEPATH)))
	$(foreach FILE,$(wildcard include/configure/*.h),$(COPY) $(FILE)
$(addsuffix $(notdir FILE),$(addsuffix /ofc/configure/,$(INCLUDEPATH)))
	$(foreach FILE,$(wildcard include/math/*.h),$(COPY) $(FILE) $(addsuffix
$(notdir FILE),$(addsuffix /ofc/math/,$(INCLUDEPATH)))
	$(foreach FILE,$(wildcard include/math/internal/*.h),$(COPY) $(FILE)
$(addsuffix $(notdir FILE),$(addsuffix /ofc/math/internal/,$(INCLUDEPATH)))

clean:
	$(foreach FILE,$(OBJECTS),$(RM) $(FILE))
	$(RM) $(CONFIGURE_EXECUTABLE)
	$(RM) obj/libofc.a

uninstall:
	$(foreach FILE,$(wildcard $(addsuffix
/ofc/platform/*.h,$(INCLUDEPATH))),$(RM) $(FILE))
	$(foreach FILE,$(wildcard $(addsuffix
/ofc/internal/*.h,$(INCLUDEPATH))),$(RM) $(FILE))
	$(foreach FILE,$(wildcard $(addsuffix
/ofc/configure/*.h,$(INCLUDEPATH))),$(RM) $(FILE))
	$(foreach FILE,$(wildcard $(addsuffix /ofc/math/*.h,$(INCLUDEPATH))),$(RM)
$(FILE))
	$(foreach FILE,$(wildcard $(addsuffix
/ofc/math/internal/*.h,$(INCLUDEPATH))),$(RM) $(FILE))
	$(foreach FILE,$(wildcard $(addsuffix /ofc*.h,$(INCLUDEPATH))),$(RM) $(FILE))
	$(RMDIR) $(addsuffix /ofc/internal,$(INCLUDEPATH))
	$(RMDIR) $(addsuffix /ofc/platform,$(INCLUDEPATH))
	$(RMDIR) $(addsuffix /ofc/configure,$(INCLUDEPATH))
	$(RMDIR) $(addsuffix /ofc/math/internal,$(INCLUDEPATH))
	$(RMDIR) $(addsuffix /ofc/math,$(INCLUDEPATH))
	$(RMDIR) $(addsuffix /ofc,$(INCLUDEPATH))
	$(RM) $(addsuffix /libofc.a,$(LIBPATH))

test:
	@echo Include path is $(INCLUDEPATH)
	@echo Library path is $(LIBPATH)
	@echo Configure executable target is $(CONFIGURE_EXECUTABLE)

.PHONY : configure all install clean uninstall test




;)
-- 
   .*.  "Clouds are not spheres, mountains are not cones, coastlines are not
-()  <  circles, and bark is not smooth, nor does lightning travel in a
   `*'  straight line."    -------------------------------------------------
        -- B. Mandelbrot  |http://surf.to/pgd.net
_____________________ ____|________     Paul Derbyshire     pderbysh AT usa DOT net
Programmer & Humanist|ICQ: 10423848|

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019