From 73859cd89788f189cd876dd1a609125bf1585bbc Mon Sep 17 00:00:00 2001 From: Candles Date: Wed, 16 Aug 2023 11:17:01 -0700 Subject: [PATCH] Fix include for partition.c Since ifdef is expanded in place and make.inc is included at the end of the makefile, FLAG_411 is checked before it's defined in the make.inc file. Changing it from an ifdef to a $(if causes the evaluation to be delayed until after FLAG_411 is defined. --- src/makefile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/makefile b/src/makefile index a862954..9a3bfa1 100644 --- a/src/makefile +++ b/src/makefile @@ -113,11 +113,7 @@ MAIN_W = ocpmix.F ocpcre.F ocpids.F \ swancom1.F swancom2.F swancom3.F swancom4.F \ swancom5.F w3part.F -ifdef FLAG_411 - COBJS = func_pointer.c partition.c -else - COBJS = func_pointer.c -endif +COBJS = $(if $(FLAG_411),func_pointer.c partition.c,func_pointer.c) BIOGEN = mod_bio_3D.F mod_onedtide.F