|
root / base / usr / src / cmd / sgs / unifdef / Makefile.com
Makefile.com Makefile 38 lines 644 B
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# Copyright 2025 Hammerhead Project
#

PROG = unifdef

include $(SRC)/cmd/Makefile.cmd
include $(SRC)/cmd/sgs/Makefile.com

# Hammerhead: Suppress warnings in legacy unifdef code
CERRWARN += -Wno-parentheses
CERRWARN += -Wno-char-subscripts

OBJS = unifdef.o

SRCS = $(OBJS:%.o=../common/%.c)

.KEEP_STATE:

all: $(PROG)

$(PROG): $(OBJS)
	$(LINK.c) $(OBJS) -o $@ $(LDLIBS)
	$(POST_PROCESS)

%.o: ../common/%.c
	$(COMPILE.c) $<

clean:
	$(RM) $(OBJS)

clobber: clean
	$(RM) $(PROG)

install: all $(ROOTPROG)