Files
Arquivotheca.Solaris-2.5/uts/sun4u/forthdebug/forthgen/Makefile
seta75D 7c4988eac0 Init
2021-10-11 19:38:01 -03:00

64 lines
1.1 KiB
Makefile
Executable File

#
# Copyright (c) 1991 by Sun Microsystems, Inc.
#
#ident "@(#)Makefile 1.2 95/06/14 SMI"
#
# uts/sun4u/forthdebug/forthgen/Makefile
UTSBASE = ../../..
#
# Define the module and object file sets.
#
FORTHGEN = $(OBJS_DIR)/forthgen
FORTHGEN_OBJS = parser.o stabs.o
OBJECTS = $(FORTHGEN_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(FORTHGEN_OBJS:%.o=$(LINTS_DIR)/%.ln)
SRCS_DIR = $(UTSBASE)/sun4u/forthdebug/forthgen
#
# Include common rules.
#
CLEANFILES = $(OBJECTS)
FILEMODE = 755
OWNER = bin
GROUP = bin
include $(UTSBASE)/sun4u/Makefile.sun4u
NATIVECFLAGS = -c
#
# Default build targets.
#
.KEEP_STATE:
all: $(FORTHGEN)
install: all
lint: $(SRCS_DIR)/parser.c $(SRCS_DIR)/stabs.c
@$(LINT) $(LINTFLAGS) $(SRCS_DIR)/parser.c $(SRCS_DIR)/stabs.c
clean:
$(RM) $(CLEANFILES)
clobber: clean
$(RM) $(FORTHGEN)
clean.lint:
$(RM) $(LINTS)
$(FORTHGEN): $(FORTHGEN_OBJS)
$(NATIVECC) -o $@ $(FORTHGEN_OBJS) -lm
$(OBJS_DIR)/parser.o: $(SRCS_DIR)/parser.c
$(NATIVECC) $(NATIVECFLAGS) $(SRCS_DIR)/parser.c -o $@
$(OBJS_DIR)/stabs.o: $(SRCS_DIR)/stabs.c
$(NATIVECC) $(NATIVECFLAGS) $(SRCS_DIR)/stabs.c -o $@