Skip to content

Instantly share code, notes, and snippets.

@rdamen
Created September 22, 2011 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdamen/1234182 to your computer and use it in GitHub Desktop.
Save rdamen/1234182 to your computer and use it in GitHub Desktop.
emu8051 makefile
CC = cc
CFLAGS = -I/usr/include -L/usr/lib -lncurses
OBJECTS = core.o disasm.o emu.o logicboard.o mainview.o \
memeditor.o opcodes.o options.o popups.o
all: $(OBJECTS)
$(CC) $(CFLAGS) -o emu8051 $(OBJECTS)
core.o: core.c emu8051.h
disasm.o: disasm.c emu8051.h
emu.o: emu.c emu8051.h emulator.h
logicboard.o: logicboard.c emu8051.h emulator.h
mainview.o: mainview.c emu8051.h emulator.h
memeditor.o: memeditor.c emu8051.h emulator.h
opcodes.o: opcodes.c emu8051.h
options.o: options.c emu8051.h emulator.h
popups.o: popups.c emu8051.h
clean:
rm $(OBJECTS) emu8051
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment