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
|
2008-11-19 13:26:10 +01:00
|
|
|
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
|
|
|
|
|