Listing 1. NormalProgramTarget() Example
SRCS1 = foo1.c bar1.c
OBJS1 = foo1.c bar1.c
SRCS2 = foo2.c bar2.c
OBJS2 = foo2.c bar2.c
SRCS3 = foo3.c bar3.c
OBJS3 = foo3.c bar3.c
SRCS = $(SRCS1) $(SRCS2) $(SRCS3)
AllTarget(foobar1)
NormalProgramTarget(foobar1,$(OBJS1),NullParameter,\
NullParameter,NullParameter)
AllTarget(foobar2)
NormalProgramTarget(foobar2,$(OBJS2),NullParameter,\
NullParameter,NullParameter)
AllTarget(foobar3)
NormalProgramTarget(foobar3,$(OBJS3),NullParameter,\
NullParameter,NullParameter)
Dependtarget()
LintTarget()
`
Copyright © 1994 - 2019 Linux Journal. All rights reserved.