COMP            = g++ 
FLAGS           = -g -Wall
LIBS            =  
OBJ_LIST        = i8051.o main.o
TARGET_NAME     = 8051sim

all: $(TARGET_NAME)

$(TARGET_NAME): $(OBJ_LIST)
	$(COMP) $(FLAGS) -o $(TARGET_NAME) $(OBJ_LIST) $(LIBS)

%.o: %.cc %.h
	$(COMP) $(FLAGS) -c $<

clean:
	rm -f *.o *~ core $(TARGET_NAME)

<div align="center"><br /><script type="text/javascript"><!--
google_ad_client = "pub-7293844627074885";
//468x60, Created at 07. 11. 25
google_ad_slot = "8619794253";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />&nbsp;</div>