Fix of cl_cmdline::syntax_match
[fw/sdcc] / sim / ucsim / sim.src / Makefile.in
index 8eeeb05a07677a895ac9a6a1b2c5c69846ca3b05..77ce47da631bc6bf8a67e6bc88b05d25b2f05451 100644 (file)
@@ -34,16 +34,16 @@ man2dir         = $(mandir)/man2
 infodir         = @infodir@
 srcdir          = @srcdir@
 
-OBJECTS         = app.o sim.o itsrc.o brk.o option.o arg.o stack.o \
-                 guiobj.o uc.o hw.o mem.o
+OBJECTS         = mem.o sim.o itsrc.o brk.o arg.o stack.o \
+                 guiobj.o uc.o hw.o
 
 
 # Compiling entire program or any subproject
 # ------------------------------------------
-all: checkconf sim_lib test_mem_speed
+all: checkconf sim_lib
 
-test_mem_speed: test_mem_speed.o
-       $(CC) -o $@ $< -L$(PRJDIR) -lsim -lutil
+test_mem_speed: $(PRJDIR)/lib*.a test_mem_speed.o
+       $(CC) -o $@ test_mem_speed.o -L$(PRJDIR) -lsim -lutil -lcmd -lsim
 
 sim.src: all
 
@@ -60,8 +60,10 @@ uninstall:
 
 # Performing self-test
 # --------------------
-check:
+check: test
+       ./test_mem_speed
 
+test: test_mem_speed
 
 # Performing installation test
 # ----------------------------