[Pntool-developers] SF.net SVN: pntool:[257] present_version
Brought to you by:
compaqdrew,
miordache
|
From: <mio...@us...> - 2011-07-28 15:06:44
|
Revision: 257
http://pntool.svn.sourceforge.net/pntool/?rev=257&view=rev
Author: miordache
Date: 2011-07-28 15:06:37 +0000 (Thu, 28 Jul 2011)
Log Message:
-----------
Modified Paths:
--------------
present_version/newcodegen/supervisorCompiler.c
Added Paths:
-----------
present_version/Makefile
Copied: present_version/Makefile (from rev 256, present_version/Makefile-linux.mak)
===================================================================
--- present_version/Makefile (rev 0)
+++ present_version/Makefile 2011-07-28 15:06:37 UTC (rev 257)
@@ -0,0 +1,33 @@
+# This is the make file of the entire program.
+
+
+COMPILER=gcc -g
+LDFLAGS=-lm -ldl
+
+PNHEADERS=pnheaders
+SPNBOX=spnbox
+CODEGEN=newcodegen
+CODEGENOBJS = $(CODEGEN)
+TRANSLATOR=parser
+
+ct: objectfiles main_function2.o
+ $(COMPILER) -o ct $(PNHEADERS)/*.o $(CODEGENOBJS)/*.o $(SPNBOX)/*.o \
+ main_function2.o $(SPNBOX)/*.a $(TRANSLATOR)/*.o $(LDFLAGS)
+
+objectfiles:
+ cd $(PNHEADERS); make
+ cd $(CODEGEN); make -f Makefile-linux.mak static
+ cd $(SPNBOX); make
+ cd $(TRANSLATOR); make
+
+main_function2.o: $(PNHEADERS)/main_function2.c $(PNHEADERS)/pns.h $(SPNBOX)/spnbox.h $(CODEGEN)/codegen.h
+ $(COMPILER) -c $(PNHEADERS)/main_function2.c -Ispnbox -I$(CODEGEN) -I$(PNHEADERS)
+
+clean:
+ rm -f main_function2.o
+ rm -f ct
+ cd $(PNHEADERS); make clean
+ cd $(CODEGEN); make -f Makefile-linux.mak clean
+ cd $(TRANSLATOR); make clean
+ cd $(SPNBOX); make clean
+
Modified: present_version/newcodegen/supervisorCompiler.c
===================================================================
--- present_version/newcodegen/supervisorCompiler.c 2011-07-28 13:54:36 UTC (rev 256)
+++ present_version/newcodegen/supervisorCompiler.c 2011-07-28 15:06:37 UTC (rev 257)
@@ -949,7 +949,7 @@
#ifndef ___USE_PTHREAD_LIB
fprintf(f, "\n\t$(COMPILER) -o %s.exe %s.c", sn, sn);
#else
- fprintf(f, "\n\t$(COMPILER) -lpthreads -o %s.exe %s.c", sn, sn);
+ fprintf(f, "\n\t$(COMPILER) -lpthread -o %s.exe %s.c", sn, sn);
#endif
for(i = 0; i < n; i++)
if(thr[i])
@@ -985,7 +985,7 @@
#ifndef ___USE_PTHREAD_LIB
fprintf(f, "\n\t$(COMPILER) -o %s.exe %s.c", prs[i]->name, prs[i]->name);
#else
- fprintf(f, "\n\t$(COMPILER) -lpthreads -o %s.exe %s.c", prs[i]->name, prs[i]->name);
+ fprintf(f, "\n\t$(COMPILER) -lpthread -o %s.exe %s.c", prs[i]->name, prs[i]->name);
#endif
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|