17f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridgeSHELL = /bin/sh
27f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge
37f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridgeEXECS = scsimain
47f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge
57f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridgeLARGE_FILE_FLAGS = -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
67f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge
77f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridgeCFLAGS = -g -O2 -Wall -D_REENTRANT $(LARGE_FILE_FLAGS)
87f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge# CFLAGS = -g -O2 -Wall -D_REENTRANT -DSG_KERNEL_INCLUDES $(LARGE_FILE_FLAGS)
97f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge# CFLAGS = -g -O2 -Wall -pedantic -D_REENTRANT $(LARGE_FILE_FLAGS)
107f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge
117f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridgeLDFLAGS =
127f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge
137f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridgeall: $(EXECS)
147f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge
157f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridgedepend dep:
16e78935efee37535e43e309d8abfbed0e2e719539subrata_modak	@set -e; for i in *.c; do $(CC) $(INCLUDES) $(CFLAGS) -M $$i; \
177f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge	done > .depend
187f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge
197f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridgeclean:
207f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge	/bin/rm -f *.o $(EXECS) core .depend
217f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge
227f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridgescsimain: scsimain.o sg_err.o llseek.o
237f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge	$(LD) -o $@ $(LDFLAGS) $^ -lpthread
247f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge
257f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridgeinstall: $(EXECS)
267f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge	install -d $(INSTDIR)
27e78935efee37535e43e309d8abfbed0e2e719539subrata_modak	@set -e; for name in $^; \
287f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge	 do install -s -o root -g root -m 755 $$name $(INSTDIR); \
297f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge	done
307f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge	install -d $(MANDIR)/$(MAN_PREF)
31e78935efee37535e43e309d8abfbed0e2e719539subrata_modak	@set -e; for mp in $(MAN_PGS); \
327f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge	 do install -o root -g root -m 644 $$mp $(MANDIR)/$(MAN_PREF); \
337f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge	 gzip -9f $(MANDIR)/$(MAN_PREF)/$$mp; \
347f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge	done
357f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge
367f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridgeuninstall:
377f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge	dists="$(EXECS)"; \
38e78935efee37535e43e309d8abfbed0e2e719539subrata_modak	@set -e; for name in $$dists; do \
397f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge	 rm -f $(INSTDIR)/$$name; \
407f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge	done
41e78935efee37535e43e309d8abfbed0e2e719539subrata_modak	@set -e; for mp in $(MAN_PGS); do \
427f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge	 rm -f $(MANDIR)/$(MAN_PREF)/$$mp.gz; \
437f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge	done
447f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridge
457f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridgeifeq (.depend,$(wildcard .depend))
467f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridgeinclude .depend
477f8f610a74bf8cc36000d4ce1ecaf6b3aaedd5f7mridgeendif
48