Go back to C and adapt code
This commit is contained in:
parent
aac010a9e3
commit
e0c565f7ff
18 changed files with 242 additions and 308 deletions
|
@ -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 $@ $<
|
||||
#-------------------
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue