4 SRCS= store.c pack.c compress.c crc.c &
5 io.c error.c misc.c date.c arcfs.c garble.c
6 HDRS= store.h pack.h compress.h crc.h &
7 nsparkio.h error.h misc.h date.h os.h spark.h arcfs.h garble.h version.h
9 NSPARKSRCS = main.c arc.c unarc.c
10 NSPARKHDRS = main.h arc.h unarc.h
12 SQSHSRCS = sqshmain.c unarc.c
25 CFLAGS += -D__MSDOS__ -bt=dos -mc
32 CFLAGS += -D__MSDOS__ -bt=dos
37 OBJS = $(SRCS:.c=$(OBJ))
38 NSPARKOBJS = $(NSPARKSRCS:.c=$(OBJ))
39 SQSHOBJS = $(SQSHSRCS:.c=$(OBJ))
40 OS_OBJS = $(OS_SRCS:.c=$(OBJ))
42 CFLAGS += -zq -oaxt -d0 -wx -fo=$(OBJ) -D$(SYSTYPE)
44 all: nspark$(EXE) sqsh$(EXE)
46 nspark$(EXE) : nspark.lnk
52 nspark.lnk : $(OBJS) $(OS_OBJS) $(NSPARKOBJS)
56 @%append $@ op map, quiet
57 @%append $@ system $(system)
58 @for %i in ($?) do @%append $@ file %i
60 sqsh.lnk : $(OBJS) $(OS_OBJS) $(SQSHOBJS)
64 @%append $@ op map, quiet
65 @%append $@ system $(system)
66 @for %i in ($?) do @%append $@ file %i
69 .EXTENSIONS: $(EXE) $(OBJ) .c .h
77 rm -f *$(EXE) *$(OBJ) *.err *.lnk *.exp *.map