# 8bitAdd makefile (Fedora Core 5) # Written by: Dan Stearns # Date: 8/12/04 # # Modifications: # 9/27/04 - fixed path names for Fedora # 1/04/05 - added build for non-module adder # 1/15/08 - fixed LIBDIR and INCDIR # # This file assumes the directory structure defined by # LIBDIR and INCDIR # # Write your makefiles by modifying this one. Don't try to # create your own makefile. Don't even think of changing the # command line. LIBDIR=/home/dstearns/simbin/ INCDIR=/home/dstearns/simbin/include/ FILES = fullAdd.o 8bitAdd.o 8bitAddTest.o # build 8 bit adder by typing make add8 add8: $(FILES) g++ -o add8 $(FILES) -L$(LIBDIR) -lsim \ -L/usr/X11R6/lib -L/usr/lib -lX11 -lc -lsim # build full adder by typing make addNM addNM: fullAddNonModule.o g++ -o addNM fullAddNonModule.o -L$(LIBDIR) -lsim \ -L/usr/X11R6/lib -L/usr/lib -lX11 -lc -lsim %.o: %.c g++ -c -I$(INCDIR) $*.c