Makefile.solaris revision 1
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
65fea56f17cd614bc8908264df980a62e1931468vboxsync# Use is subject to license terms.
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# ident "%Z%%M% %I% %E% SMI"
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsyncinclude ../../Makefile.grub
65fea56f17cd614bc8908264df980a62e1931468vboxsyncinclude ../Makefile.solaris.defs
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncINCLUDES = -I. -I.. -I../stage1 -I../stage2
65fea56f17cd614bc8908264df980a62e1931468vboxsyncCFLAGS += -O2
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncLIBCOMMON = libcommon.a
65fea56f17cd614bc8908264df980a62e1931468vboxsyncLIBCOMMON_OBJS = device.o \
65fea56f17cd614bc8908264df980a62e1931468vboxsync getopt.o \
65fea56f17cd614bc8908264df980a62e1931468vboxsync getopt1.o
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncLIBRARIES = $(LIBCOMMON)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsync# Source files to be installed in $(SRC_DIR).
65fea56f17cd614bc8908264df980a62e1931468vboxsync#
65fea56f17cd614bc8908264df980a62e1931468vboxsyncSRC_DIR = $(ROOT_SRC)/lib
65fea56f17cd614bc8908264df980a62e1931468vboxsyncSRC_FILES = Makefile.am Makefile.in device.c device.h \
65fea56f17cd614bc8908264df980a62e1931468vboxsync getopt.c getopt.h getopt1.c
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncINSTALL_TARGETS = $(SRC_FILES:%=$(SRC_DIR)/%)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncall: $(LIBRARIES)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync$(LIBCOMMON): $(LIBCOMMON_OBJS)
65fea56f17cd614bc8908264df980a62e1931468vboxsync $(RM) $@
65fea56f17cd614bc8908264df980a62e1931468vboxsync $(AR) cru $@ $(LIBCOMMON_OBJS)
65fea56f17cd614bc8908264df980a62e1931468vboxsync $(RANLIB) $@
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync$(LIBCOMMON_OBJS): $$(@:.o=.c)
65fea56f17cd614bc8908264df980a62e1931468vboxsync $(CC) $(CFLAGS) -c -o $@ $(@:.o=.c)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncinstall: all $(INSTALL_TARGETS)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync$(SRC_DIR)/%: $(SRC_DIR) %
65fea56f17cd614bc8908264df980a62e1931468vboxsync $(INS.file)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync$(SRC_DIR):
65fea56f17cd614bc8908264df980a62e1931468vboxsync $(INS.dir)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncclean: _FORCE
65fea56f17cd614bc8908264df980a62e1931468vboxsync $(RM) *.o $(LIBRARIES)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncclobber: clean
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync_FORCE:
65fea56f17cd614bc8908264df980a62e1931468vboxsync