minix/drivers/amddev/Makefile

33 lines
553 B
Makefile
Raw Normal View History

2008-02-25 13:07:19 +01:00
# Makefile for AMD's DEV
DRIVER = amddev
# programs, flags, etc.
CC = exec cc
CFLAGS = $(CPROFILE)
LDFLAGS = -i
LIBS = -lsys
2008-02-25 13:07:19 +01:00
OBJ = amddev.o
# build local binary
all build: $(DRIVER)
$(DRIVER): $(OBJ)
$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
install -S 320k $(DRIVER)
# install with other drivers
install: /usr/sbin/$(DRIVER)
/usr/sbin/$(DRIVER): $(DRIVER)
install -o root -cs $? $@
# clean up local files
clean:
rm -f *.o *.bak $(DRIVER)
depend:
mkdep "$(CC) -E $(CPPFLAGS)" *.c > .depend
# Include generated dependencies.
include .depend