make
NOT using recipe
I have read & read GNU Make and have no answers.
I modified the example on pg 24 of GNU Make
foo : $(objects)
cc -o foo $(CFLAGS) $(objects)
The example does not even work, the recipe is ignored.
Nothing after is recognized. eg @echo whatever...
I did find a workaround. Which now works but still NO recipe is recognized.
CFLAGS = -fPIC -g -c -o are still automatically added to the implicit recipe
fubar : $(obj_c)
I am trying to make compiling library OBJECTS an automatic process.
The default recipe is fine for other projects but NOT libraries.
additional information:
GNU Make 4.1
address@hidden
http://savannah.gnu.org/projects/make/
Built for x86_64-pc-linux-gnu
Copyright (C) 1988-2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
CPU: AMD Athlon(tm) II P360 Dual-Core x 2
MEM: 3783MB (1009MB used)
SCSI: ATA WDC WD3200BEVT-7 320 GB
TSSTcorp DVD+-RW TS-L633C
DISP: Resolution 1366x768 pixels
OpenGL Renderer Gallium 0.4
AMD RS880 (DRM 2.49.0 / 4.10.0-32-generic,LLVM 4.0.0)
USR: XXXXXXX (XXXXXXXXX XXXXXXXX)
Linux Mint 18.2 Sonya
Kernal Linux 4.10.0-33-generic x86_64
MATE 1.18.0