2018-08-05 23:04:34 +00:00
|
|
|
CC = occ
|
|
|
|
CFLAGS = -w-1 -O-1
|
|
|
|
|
|
|
|
HTTPTEST_OBJS = httptest.a hostname.a http.a readtcp.a seturl.a strcasecmp.a tcpconnection.a urlparser.a
|
|
|
|
HTTPTEST_PROG = httptest
|
|
|
|
|
2018-10-02 23:04:22 +00:00
|
|
|
MOUNTURL_OBJS = mounturl.a netdiskerror.a
|
2018-08-10 22:53:09 +00:00
|
|
|
MOUNTURL_PROG = mounturl
|
|
|
|
|
2018-08-17 02:39:23 +00:00
|
|
|
NETDISKINIT_OBJS = initstart.a netdiskinit.a hostname.a http.a readtcp.a seturl.a strcasecmp.a tcpconnection.a urlparser.a driver.a installdriver.a asmglue.a driverwrapper.a session.a systemservices.a
|
2018-08-05 23:04:34 +00:00
|
|
|
# NETDISKINIT_RSRC =
|
|
|
|
NETDISKINIT_PROG = NetDiskInit
|
|
|
|
|
2018-10-01 03:47:43 +00:00
|
|
|
NETDISKCDEV_OBJS = cdev.a cdevutil.a netdiskerror.a strcasecmp.a
|
2018-08-11 21:33:18 +00:00
|
|
|
NETDISKCDEV_RSRC = cdev.rez
|
|
|
|
NETDISKCDEV_CDEV = NetDisk
|
2018-08-05 23:04:34 +00:00
|
|
|
|
2018-08-07 01:22:33 +00:00
|
|
|
MACROS = asmglue.macros
|
|
|
|
|
2018-08-11 21:33:18 +00:00
|
|
|
PROGS = $(HTTPTEST_PROG) $(NETDISKINIT_PROG) $(MOUNTURL_PROG) $(NETDISKCDEV_CDEV)
|
2018-08-05 23:04:34 +00:00
|
|
|
|
|
|
|
.PHONY: default
|
|
|
|
default: $(PROGS)
|
|
|
|
|
|
|
|
$(HTTPTEST_PROG): $(HTTPTEST_OBJS)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
|
2018-08-10 22:53:09 +00:00
|
|
|
$(MOUNTURL_PROG): $(MOUNTURL_OBJS)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
|
2018-08-05 23:04:34 +00:00
|
|
|
$(NETDISKINIT_PROG): $(NETDISKINIT_OBJS)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
iix chtyp -tpif $@
|
|
|
|
|
2018-08-11 21:33:18 +00:00
|
|
|
cdev.obj: $(NETDISKCDEV_OBJS)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
|
|
|
|
$(NETDISKCDEV_CDEV): cdev.obj $(NETDISKCDEV_RSRC)
|
|
|
|
occ $(NETDISKCDEV_RSRC) -o $@
|
|
|
|
iix chtyp -tcdv $@
|
|
|
|
|
2018-08-07 01:22:33 +00:00
|
|
|
%.macros: %.asm
|
|
|
|
iix macgen $< $@ 13/ORCAInclude/m16.= < /dev/null > /dev/null
|
|
|
|
|
|
|
|
.PHONY: macros
|
|
|
|
macros: $(MACROS)
|
|
|
|
|
2018-08-05 23:04:34 +00:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -f $(PROGS) *.a *.o *.root *.A *.O *.ROOT
|
|
|
|
|
|
|
|
%.a: %.c *.h
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
|
|
|
%.a: %.asm
|
|
|
|
$(CC) $(CFLAGS) -c $<
|