2019-04-13 00:39:22 +00:00
|
|
|
CC = occ
|
|
|
|
CFLAGS = -w-1 -O-1
|
|
|
|
|
2019-04-13 05:32:40 +00:00
|
|
|
JSONTEST_OBJS = jsontest.a json.a jsonutil.a
|
|
|
|
JSONTEST_PROG = jsontest
|
2019-04-13 00:39:22 +00:00
|
|
|
|
2019-04-13 17:57:35 +00:00
|
|
|
HTTPTEST_OBJS = httptest.a hostname.a http.a readtcp.a seturl.a strcasecmp.a tcpconnection.a urlparser.a
|
|
|
|
HTTPTEST_PROG = httptest
|
|
|
|
|
2019-04-13 04:23:39 +00:00
|
|
|
DISKBROWSER_OBJS = diskbrowser.a hostname.a http.a json.a jsonutil.a readtcp.a seturl.a strcasecmp.a tcpconnection.a urlparser.a
|
2019-04-13 00:39:22 +00:00
|
|
|
DISKBROWSER_RSRC = diskbrowser.rez
|
|
|
|
DISKBROWSER_PROG = DiskBrowser
|
|
|
|
|
2019-04-13 17:57:35 +00:00
|
|
|
PROGS = $(JSONTEST_PROG) $(HTTPTEST_PROG) $(DISKBROWSER_PROG)
|
2019-04-13 00:39:22 +00:00
|
|
|
|
|
|
|
.PHONY: default
|
|
|
|
default: $(PROGS)
|
|
|
|
|
2019-04-13 05:32:40 +00:00
|
|
|
$(JSONTEST_PROG): $(JSONTEST_OBJS)
|
2019-04-13 00:39:22 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
|
2019-04-13 17:57:35 +00:00
|
|
|
$(HTTPTEST_PROG): $(HTTPTEST_OBJS)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
|
2019-04-13 00:39:22 +00:00
|
|
|
$(DISKBROWSER_PROG): $(DISKBROWSER_OBJS) $(DISKBROWSER_RSRC)
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(DISKBROWSER_OBJS)
|
|
|
|
occ $(DISKBROWSER_RSRC) -o $@
|
|
|
|
iix chtyp -t ldf -a 1 $@
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -f $(PROGS) *.a *.o *.root *.A *.O *.ROOT
|
|
|
|
|
|
|
|
%.a: %.c *.h
|
|
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
|
|
|
|
%.a: %.asm
|
|
|
|
$(CC) $(CFLAGS) -c $<
|