Added files from makeBaseApp

This commit is contained in:
kpetersn
2019-04-09 11:24:20 -05:00
parent 28f04e256a
commit 2846bfa018
27 changed files with 490 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
TOP=../..
include $(TOP)/configure/CONFIG
#----------------------------------------
# ADD MACRO DEFINITIONS AFTER THIS LINE
#=============================
#=============================
# Build the IOC application
PROD_IOC = acs
# acs.dbd will be created and installed
DBD += acs.dbd
# acs.dbd will be made up from these files:
acs_DBD += base.dbd
# Include dbd files from all support applications:
#acs_DBD += xxx.dbd
# Add all the support libraries needed by this IOC
#acs_LIBS += xxx
# acs_registerRecordDeviceDriver.cpp derives from acs.dbd
acs_SRCS += acs_registerRecordDeviceDriver.cpp
# Build the main IOC entry point on workstation OSs.
acs_SRCS_DEFAULT += acsMain.cpp
acs_SRCS_vxWorks += -nil-
# Add support from base/src/vxWorks if needed
#acs_OBJS_vxWorks += $(EPICS_BASE_BIN)/vxComLibrary
# Finally link to the EPICS Base libraries
acs_LIBS += $(EPICS_BASE_IOC_LIBS)
#===========================
include $(TOP)/configure/RULES
#----------------------------------------
# ADD RULES AFTER THIS LINE

View File

@@ -0,0 +1,23 @@
/* acsMain.cpp */
/* Author: Marty Kraimer Date: 17MAR2000 */
#include <stddef.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <stdio.h>
#include "epicsExit.h"
#include "epicsThread.h"
#include "iocsh.h"
int main(int argc,char *argv[])
{
if(argc>=2) {
iocsh(argv[1]);
epicsThreadSleep(.2);
}
iocsh(NULL);
epicsExit(0);
return(0);
}