Go back to C and adapt code

This commit is contained in:
manzerbredes 2015-07-28 14:19:00 +04:00
parent aac010a9e3
commit e0c565f7ff
18 changed files with 242 additions and 308 deletions

View file

@ -1,23 +1,23 @@
EXEC=helpers.o
all:$(EXEC)
#----- Helpers -----
$(EXEC): memory.o memPrint.o
ld -m elf_i386 -r -o $(EXEC) $^
$(EXEC): memory.o memprint.o
# ld -m elf_i386 -r -o $(EXEC) $^
ar -r -o $(EXEC) $^
#---------------
#----- Memory -----
memory.o: memory.cpp memory.hpp
$(CXX) -c -o $@ $<
memory.o: memory.c memory.h
$(CC) $(CFLAGS) -c -o $@ $<
#------------------
#----- memPrint -----
memPrint.o: memPrint.cpp memPrint.hpp
$(CXX) -c -o $@ $<
memprint.o: memprint.c memprint.h
$(CC) $(CFLAGS) -c -o $@ $<
#-------------------