mirror of
https://github.com/sheumann/DiskBrowser.git
synced 2024-12-22 11:29:27 +00:00
c237bd661f
This is adapted from NetDisk with minor changes.
33 lines
712 B
Makefile
33 lines
712 B
Makefile
CC = occ
|
|
CFLAGS = -w-1 -O-1
|
|
|
|
TEST_OBJS = test.a json.a jsonutil.a
|
|
TEST_PROG = test
|
|
|
|
DISKBROWSER_OBJS = diskbrowser.a hostname.a http.a json.a jsonutil.a readtcp.a seturl.a strcasecmp.a tcpconnection.a urlparser.a
|
|
DISKBROWSER_RSRC = diskbrowser.rez
|
|
DISKBROWSER_PROG = DiskBrowser
|
|
|
|
PROGS = $(TEST_PROG) $(DISKBROWSER_PROG)
|
|
|
|
.PHONY: default
|
|
default: $(PROGS)
|
|
|
|
$(TEST_PROG): $(TEST_OBJS)
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
$(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 $<
|