[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-user: how to get pcb compiled with -DARC45



I have not found where in a Makefile to set the compiler directive  so
this code gets compiled:

====================================
  if (XOR (Crosshair.AttachedBox.otherway, abs (wy) > abs (wx)))
    {
      arc.X = Crosshair.AttachedBox.Point1.X + abs (wy) * SGNZ (wx);
      sa = (wx >= 0) ? 0 : 180;
#ifdef ARC45
      if (abs (wy) >= 2 * abs (wx))
dir = (SGNZ (wx) == SGNZ (wy)) ? 45 : -45;
      else
#endif
====================================


Is this just a generic compile step I don't know?  "Help Mr. Wizard...."


Would it go here?
=================

CPPFLAGS =  -DPCBLIBDIR=\"${prefix}/share/pcb\" -DPCBTREEDIR=\"${prefix}/share/pcb/newlib\"
CYGPATH_W = echo
DEFS = -DHAVE_CONFIG_H  -DARC45
DEPDIR = .deps
================
Nahh...  I compiled that and it ignored it it seems.  Is my syntax correct?
-- 
John Griessen    Cibolo Design       Austin Texas