freebsd-dev/sys/i386/bios/apm_init/Makefile
Poul-Henning Kamp 648c711bb4 This is the latest version of the APM stuff from HOSOKAWA, I have looked
briefly over it, and see some serious architectural issues in this stuff.

On the other hand, I doubt that we will have any solution to these issues
before 2.1, so we might as well leave this in.

Most of the stuff is bracketed by #ifdef's so it shouldn't matter too much
in the normal case.

Reviewed by:	phk
Submitted by:	HOSOKAWA, Tatsumi <hosokawa@mt.cs.keio.ac.jp>
1995-02-17 02:22:57 +00:00

53 lines
1.3 KiB
Makefile

#
# APM (Advanced Power Management) BIOS Device Driver
#
# Copyright (c) 1994-1995 by HOSOKAWA, Tatsumi <hosokawa@mt.cs.keio.ac.jp>
#
# This software may be used, modified, copied, and distributed, in
# both source and binary form provided that the above copyright and
# these terms are retained. Under no circumstances is the author
# responsible for the proper functioning of this software, nor does
# the author assume any responsibility for damages incurred with its
# use.
#
# Sep., 1994 Implemented on FreeBSD 1.1.5.1R (Toshiba AVS001WD)
#
# $Id: Makefile,v 1.2 1994/10/01 05:12:29 davidg Exp $
#
OBJS = apm_init.o real_prot.o table.o
CFLAGS = -DKERNEL -DINITIALIZER
OPTFLAGS = -O2
I386INCDIR = ${.CURDIR}/../../include
INC= -I$(I386INCDIR)
all: apm_init.inc
.SUFFIXES: .c .S .o
.c.o:
$(CC) $(CFLAGS) $(OPTFLAGS) $(INC) -c $<
.S.o:
$(CC) $(CFLAGS) $(INC) -c $<
apm_init.inc: apm_init bin2asm
./bin2asm apm_init apm_init.inc
apm_init: $(OBJS)
$(LD) -Bstatic -N -T 0 -o apm_init $(OBJS)
cp apm_init apm_init.sym
@strip apm_init
@sh ${.CURDIR}/rmaouthdr apm_init apm_init.tmp
@mv -f apm_init.tmp apm_init
bin2asm: bin2asm.c
$(CC) -o bin2asm ${.CURDIR}/bin2asm.c
allclean: clean
@rm -f apm_init.inc
clean:
@rm -f *.o apm_init apm_init.sym bin2asm
.include <bsd.prog.mk>