pkgsrc/cad/ntesla/patches/patch-aa

21 lines
509 B
Text

$NetBSD: patch-aa,v 1.2 2003/12/17 16:58:25 sketch Exp $
--- Makefile.orig Fri Mar 28 12:18:02 1997
+++ Makefile Thu Oct 23 08:06:00 2003
@@ -22,12 +22,14 @@
# Ntesla needs an ANSI C compiler. On Sun workstations, uncomment the next
# line, or use gcc.
#CC=acc
-CFLAGS=-Wall
+CFLAGS += -Dunix
OBJ = main.o solonoid.o wiretab.o interp.o spiral.o trans.o cap.o misc.o
+all: ntesla
+
ntesla: $(OBJ)
- cc -o ntesla $(OBJ) -lm
+ $(CC) -o ntesla $(OBJ) -lm $(LDFLAGS)
clean:
rm -f $(OBJ) ntesla.prm