summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkshay Chipkar2016-04-27 15:14:33 +0530
committerAkshay Chipkar2016-04-27 15:14:33 +0530
commit7611f9861d1ff51685ee48a19b5b1c0ef8c5f73c (patch)
tree51f0e5002391d2c47f38988f1d9a45ce6bf7b152
parent9f833ae30ac8caa6c26b182d9153a7f7f7976d87 (diff)
downloadOpenPLC-ldmicro-master.tar.gz
OpenPLC-ldmicro-master.tar.bz2
OpenPLC-ldmicro-master.zip
minor changesHEADmaster
-rw-r--r--README.rst8
-rw-r--r--ldmicro/Makefile19
2 files changed, 24 insertions, 3 deletions
diff --git a/README.rst b/README.rst
index b70e6b2..f29c320 100644
--- a/README.rst
+++ b/README.rst
@@ -4,6 +4,10 @@ microcontrollers. It can generate native code for Atmel AVR and Microchip
PIC16 CPUs from a ladder diagram.
+Instructions
+======
+Before modifying contents of this git account, kindly make sure that you do not add unnecessary files that are created during the make process. In order to do so ensure that you add appropriate command to the makefile and execute "make clean" script before uploading your changes to git.
+
Building LDMICRO
======
LDmicro is built using Microsoft Visual C++ compiler. Simply execute
@@ -13,13 +17,13 @@ make.bat
from visual studio command prompt and see everything build.
-Multiple Perl Scripts are executed by the batch files. In order to execute
+Multiple Perl Scripts are executed during the build phase. In order to execute
these scripts, you need perl. I am using ActivePerl Community Edition
http://www.activestate.com/activeperl
The make files use GNU utilities which are not available on windows by default.
-Download GNU utilities for Win32 here
+Download GNU utilities for Win32 here:
http://unxutils.sourceforge.net
diff --git a/ldmicro/Makefile b/ldmicro/Makefile
index 215e170..ef414e8 100644
--- a/ldmicro/Makefile
+++ b/ldmicro/Makefile
@@ -37,6 +37,22 @@ LDOBJS = $(OBJDIR)\ldmicro.obj \
HELPOBJ = $(OBJDIR)\helptext.obj
+CLEANOBJ = $(OBJDIR)\helptext.cpp \
+ $(OBJDIR)\helptext.obj \
+ $(OBJDIR)\lang-tables.h \
+ $(OBJDIR)\ldmicro.exe \
+ $(OBJDIR)\ldmicro.obj \
+ $(OBJDIR)\ldmicro.res \
+ $(OBJDIR)\freeze.obj \
+ $(OBJDIR)\ldinterpret.exe \
+ $(OBJDIR)\ldmicro.ilk \
+ $(OBJDIR)\ldmicro.pdb \
+ ldinterpret.exe \
+ ldinterpret.obj \
+ ldmicro.exe \
+ vc100.pdb \
+ reg\results
+
LIBS = user32.lib gdi32.lib comctl32.lib advapi32.lib
all: $(OBJDIR)/ldmicro.exe $(OBJDIR)/ldinterpret.exe
@@ -47,7 +63,8 @@ all: $(OBJDIR)/ldmicro.exe $(OBJDIR)/ldinterpret.exe
@cd ..
clean:
- rm -f obj/*
+ rm -rf $(LDOBJS) $(CLEANOBJ)
+ rmdir reg\results
lang.cpp: $(OBJDIR)/lang-tables.h