1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
# unadf
LIBDIR=../Lib
LIBNAME=libadf.a
DEPEND=makedepend
CFLAGS=-I$(LIBDIR) -Wall -Wno-uninitialized -pedantic -std=gnu99 -ggdb
LDFLAGS=-L$(LIBDIR) -ladf
CFLAGS =$(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
LDFLAGS =$(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
EXES= unadf
all: $(EXES)
run: $(EXES)
unadf -h
unadf -lrcs -v 1 ../../hd.adf
lib:
cd $(LIBDIR) && $(MAKE)
unadf: lib unadf.o
$(CC) $(CFLAGS) -o $@ unadf.o $(LDFLAGS)
clean:
(rm *.o $(EXES) core newdev *.exe *~) || true
echo >.depend
dep:
$(DEPEND) -f.depend -v -- $(CFLAGS) -- *.[ch]
include .depend
|