head	1.1;
access;
symbols
	pkgsrc-2026Q1:1.1.0.40
	pkgsrc-2026Q1-base:1.1
	pkgsrc-2025Q4:1.1.0.38
	pkgsrc-2025Q4-base:1.1
	pkgsrc-2025Q3:1.1.0.36
	pkgsrc-2025Q3-base:1.1
	pkgsrc-2025Q2:1.1.0.34
	pkgsrc-2025Q2-base:1.1
	pkgsrc-2025Q1:1.1.0.32
	pkgsrc-2025Q1-base:1.1
	pkgsrc-2024Q4:1.1.0.30
	pkgsrc-2024Q4-base:1.1
	pkgsrc-2024Q3:1.1.0.28
	pkgsrc-2024Q3-base:1.1
	pkgsrc-2024Q2:1.1.0.26
	pkgsrc-2024Q2-base:1.1
	pkgsrc-2024Q1:1.1.0.24
	pkgsrc-2024Q1-base:1.1
	pkgsrc-2023Q4:1.1.0.22
	pkgsrc-2023Q4-base:1.1
	pkgsrc-2023Q3:1.1.0.20
	pkgsrc-2023Q3-base:1.1
	pkgsrc-2023Q2:1.1.0.18
	pkgsrc-2023Q2-base:1.1
	pkgsrc-2023Q1:1.1.0.16
	pkgsrc-2023Q1-base:1.1
	pkgsrc-2022Q4:1.1.0.14
	pkgsrc-2022Q4-base:1.1
	pkgsrc-2022Q3:1.1.0.12
	pkgsrc-2022Q3-base:1.1
	pkgsrc-2022Q2:1.1.0.10
	pkgsrc-2022Q2-base:1.1
	pkgsrc-2022Q1:1.1.0.8
	pkgsrc-2022Q1-base:1.1
	pkgsrc-2021Q4:1.1.0.6
	pkgsrc-2021Q4-base:1.1
	pkgsrc-2021Q3:1.1.0.4
	pkgsrc-2021Q3-base:1.1
	pkgsrc-2021Q2:1.1.0.2
	pkgsrc-2021Q2-base:1.1;
locks; strict;
comment	@# @;


1.1
date	2021.05.14.14.31.24;	author nia;	state Exp;
branches;
next	;
commitid	S9tv7Luski07M7TC;


desc
@@


1.1
log
@mflteco: honor CFLAGS/LDFLAGS
@
text
@$NetBSD$

Add defines for standard things.

--- Makefile.orig	2021-05-14 14:27:30.831013017 +0000
+++ Makefile
@@@@ -5,30 +5,30 @@@@
 #   te_sunw	makes teco to run in a Sun window
 #   te_tool	makes teco to run either in its own window (TECOtool) or in a Sun window
 #   tt		makes TECOtool
-CDF=-O -DMCH
+CDF=$(CFLAGS) -DMCH -DWAITRET_INT -DPOSIX_TECO
 
 te: te_data.o te_utils.o te_subs.o te_main.o te_rdcmd.o te_exec0.o te_exec1.o te_exec2.o \
 	te_srch.o te_chario.o te_window.o te_fxstub.o
-	cc $(CDF) -o te te_data.o te_utils.o te_subs.o te_main.o te_rdcmd.o te_exec0.o te_exec1.o te_exec2.o \
+	cc $(LDFLAGS) -o te te_data.o te_utils.o te_subs.o te_main.o te_rdcmd.o te_exec0.o te_exec1.o te_exec2.o \
 	te_srch.o te_chario.o te_window.o te_fxstub.o -ltermcap
 
 te_sun: te_data.o te_utils.o te_subs.o te_main.o te_rdcmd_sun.o te_exec0.o te_exec1.o \
 	te_exec2.o te_srch.o te_chario_sun.o te_window.o te_fxstub.o
-	cc -o te te_data.o te_utils.o te_subs.o te_main.o te_rdcmd_sun.o te_exec0.o te_exec1.o \
+	cc $(LDFLAGS) -o te te_data.o te_utils.o te_subs.o te_main.o te_rdcmd_sun.o te_exec0.o te_exec1.o \
 	te_exec2.o te_srch.o te_chario_sun.o te_window.o te_fxstub.o -ltermcap
 
 te_sunw: te_data.o te_utils.o te_subs.o te_main.o te_rdcmd_sun.o te_exec0.o te_exec1.o \
 	te_exec2.o te_srch.o te_chario_sunw.o te_window_sun.o te_fxstub.o
-	cc -o te te_data.o te_utils.o te_subs.o te_main.o te_rdcmd_sun.o te_exec0.o te_exec1.o \
+	cc $(LDFLAGS) -o te te_data.o te_utils.o te_subs.o te_main.o te_rdcmd_sun.o te_exec0.o te_exec1.o \
 	te_exec2.o te_srch.o te_chario_sunw.o te_window_sun.o te_fxstub.o -ltermcap
 
 te_tool: te_data.o te_utils.o te_subs.o te_main.o te_rdcmd_tt.o te_exec0.o te_exec1.o \
 	te_exec2_tt.o te_srch.o te_chario_tt.o te_window_tt.o te_fxstub.o
-	cc -o te te_data.o te_utils.o te_subs.o te_main.o te_rdcmd_tt.o te_exec0.o te_exec1.o \
+	cc $(LDFLAGS) -o te te_data.o te_utils.o te_subs.o te_main.o te_rdcmd_tt.o te_exec0.o te_exec1.o \
 	te_exec2_tt.o te_srch.o te_chario_tt.o te_window_tt.o te_fxstub.o -lsuntool -lsunwindow -lpixrect -ltermcap -ltermcap
 
 tt:	tecotool.c teco.icon
-	cc -o tt -I/usr/openwin/include -O tecotool.c -lsuntool -lsunwindow -lpixrect -ltermcap
+	cc $(LDFLAGS) -o tt -I/usr/openwin/include -O tecotool.c -lsuntool -lsunwindow -lpixrect -ltermcap
 
 te_chario.o: te_defs.h te_chario.c
 	cc -c $(CDF) te_chario.c
@
