2015-07-20 20:06:20 +04:00
|
|
|
EXEC=helpers.o
|
|
|
|
|
|
|
|
all:$(EXEC)
|
|
|
|
|
|
|
|
#----- Helpers -----
|
2015-07-28 14:19:00 +04:00
|
|
|
$(EXEC): memory.o memprint.o
|
|
|
|
# ld -m elf_i386 -r -o $(EXEC) $^
|
|
|
|
ar -r -o $(EXEC) $^
|
2015-07-20 20:06:20 +04:00
|
|
|
#---------------
|
|
|
|
|
|
|
|
|
2015-07-22 13:22:53 +04:00
|
|
|
#----- Memory -----
|
2015-07-28 14:19:00 +04:00
|
|
|
memory.o: memory.c memory.h
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
2015-07-22 13:22:53 +04:00
|
|
|
#------------------
|
|
|
|
|
|
|
|
|
|
|
|
#----- memPrint -----
|
2015-07-28 14:19:00 +04:00
|
|
|
memprint.o: memprint.c memprint.h
|
|
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
2015-07-22 13:22:53 +04:00
|
|
|
#-------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-07-20 20:06:20 +04:00
|
|
|
#----- Other -----
|
|
|
|
.PHONY:clean
|
|
|
|
|
|
|
|
clean:
|
2015-07-21 16:53:10 +04:00
|
|
|
-rm *.o
|
2015-07-20 20:06:20 +04:00
|
|
|
#----------------
|