3
PROGRAMS=silo silocheck
6
CFLAGS=-O2 -Wall -I. -I../include
8
ifeq ($(OPSYS),Solaris)
9
UFSDEPS=../second/ufs.c ufs.h
14
HEADERS=../first/first.h ../first/ultra.h ../first/fd.h
15
SILO_OBJS=confcheck.o prom.o silo.o
16
SILOCHK_OBJS=silocheck.o
18
silo: $(HEADERS) $(SILO_OBJS)
19
$(CC) -o $@ $(SILO_OBJS)
21
silocheck: $(SILOCHK_OBJS) $(UFSDEPS)
22
$(CC) -o $@ $(SILOCHK_OBJS)
24
floppy.h: floppy.label $(BIN2H)
25
$(BIN2H) floppy_label floppy.label > floppy.h
27
ufs.h: ../second/ufs.h
28
ln -f ../second/ufs.h ufs.h
31
$(MAKE) -C ../first first.h ultra.h fd.h
33
silo.o: silo.c floppy.h $(UFSDEPS)
34
$(CC) $(CFLAGS) -DVERSION='"$(VERSION)"' -DIMGVERSION='"$(IMGVERSION)"' -c silo.c
37
$(RM) *.o silo floppy.h ufs.h silocheck