1 # ADFLib Makefile for Unix platforms
2 # tested on Solaris 2.6 and Linux 2.0.36 (RedHat 5.2)
5 # real devices routines location
18 CFLAGS
=$(DEFINES
) -I
${NATIV_DIR} -I..
-I.
-Wall
-O2
-pedantic
26 OBJS
=adf_hd.o adf_disk.o adf_raw.o adf_bitm.o adf_dump.o\
27 adf_util.o adf_env.o adf_nativ.o adf_dir.o adf_file.o adf_cache.o \
32 -@
($(RANLIB
) $@ || true
) >/dev
/null
2>&1
34 $(SHAREDLIB
).
$(VER
): $(OBJS
)
35 $(LDSHARED
) -o
$@
$(OBJS
)
36 rm -f
$(SHAREDLIB
) $(SHAREDLIB
).1
38 ln
-s
$@
$(SHAREDLIB
).1
41 # to define LITT_ENDIAN on little endian machines (intel)
42 # checks for sizeof(long)=4, sizeof(short)=2, sizeof(int)=4
46 adf_nativ.o
: ${NATIV_DIR}/adf_nativ.c
${NATIV_DIR}/adf_nativ.h
47 $(CC
) ${CFLAGS} -c
${NATIV_DIR}/adf_nativ.c
50 @
rm $(OBJS
) $(EXE
) defendian.h
$(LIBS
) $(SHAREDLIB
)
54 @zip
-9r adflib.zip
*.h
*.c Makefile myconf Docs Linux Win32 Refs runtest
57 $(DEPEND
) -v
-- $(CFLAGS
) -- *.
[ch
]
60 # DO NOT DELETE THIS LINE -- make depend depends on it.