CSa32/Makefile
author hh
Thu, 21 Nov 2019 14:55:10 +0100
changeset 0 5c129dd80d4f
permissions -rw-r--r--
--
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
hh
parents:
diff changeset
     1
O := CS.o Debug.o Node.o Data.o
hh
parents:
diff changeset
     2
H := DS.S
hh
parents:
diff changeset
     3
hh
parents:
diff changeset
     4
ASFLAGS := -Wall --gstabs  -am --32
hh
parents:
diff changeset
     5
LDFLAGS := -m elf_i386 -lc -lm -lpthread -lrt -lssl -lcrypto
hh
parents:
diff changeset
     6
hh
parents:
diff changeset
     7
.PHONY:	all clean
hh
parents:
diff changeset
     8
all:	CS
hh
parents:
diff changeset
     9
hh
parents:
diff changeset
    10
CS:	$(O) Makefile
hh
parents:
diff changeset
    11
	ld $(LDFLAGS) $(O) -o $@ 
hh
parents:
diff changeset
    12
hh
parents:
diff changeset
    13
%.o:	%.S $(H) Makefile
hh
parents:
diff changeset
    14
	as $(ASFLAGS) -a=$*.lst -o $@ $<
hh
parents:
diff changeset
    15
hh
parents:
diff changeset
    16
clean:
hh
parents:
diff changeset
    17
	rm -f CS $(O)