Skip to content
Browse files

Moved headers to /include directory.

  • Loading branch information...
1 parent 5ba8a1b commit b8585e23954312489a6d1a47aef2e2f92f41f9aa @cudaki cudaki committed Oct 11, 2011
View
14 Makefile
@@ -1,20 +1,20 @@
# xlsh - eXtended Login Shell
# See COPYING file for license details.
-XLSH_SOURCE = src/xlsh.c src/libxlsh.c
-XLSH_HEADERS = src/xlsh.h src/libxlsh.h src/config.h
-XLSH_LIBS = -lreadline -lpam
+XLSH_SOURCE = src/xlsh.c src/libxlsh.c
+XLSH_HEADERS = include/xlsh.h include/libxlsh.h include/config.h
+XLSH_LIBS = -lreadline -lpam
-XLSHD_SOURCE = src/xlshd.c src/libxlsh.c
-XLSHD_HEADERS= src/config.h src/libxlsh.h
+XLSHD_SOURCE = src/xlshd.c src/libxlsh.c
+XLSHD_HEADERS = include/config.h include/libxlsh.h
all: xlsh xlshd
xlsh: ${XLSH_SOURCE} ${XLSH_HEADERS}
- ${CC} -g -Wall -o $@ ${XLSH_SOURCE} ${CFLAGS} ${LDFLAGS} ${XLSH_LIBS}
+ ${CC} -g -Wall -o $@ -I./include ${XLSH_SOURCE} ${CFLAGS} ${LDFLAGS} ${XLSH_LIBS}
xlshd: ${XLSHD_SOURCE} ${XLSHD_HEADERS}
- ${CC} -g -Wall -o $@ ${XLSHD_SOURCE} ${CFLAGS} ${LDFLAGS}
+ ${CC} -g -Wall -o $@ -I./include ${XLSHD_SOURCE} ${CFLAGS} ${LDFLAGS}
clean:
rm -f xlsh xlshd
View
0 src/config.h → include/config.h
File renamed without changes.
View
0 src/libxlsh.h → include/libxlsh.h
File renamed without changes.
View
0 src/xlsh.h → include/xlsh.h
File renamed without changes.
View
4 src/libxlsh.c
@@ -12,8 +12,8 @@
#include <sys/types.h>
#include <sys/stat.h>
-#include "config.h"
-#include "libxlsh.h"
+#include <config.h>
+#include <libxlsh.h>
static sigset_t xlsh_default_sigmask;
View
7 src/xlsh.c
@@ -21,9 +21,9 @@
#include <readline/history.h>
#include <security/pam_appl.h>
-#include "config.h"
-#include "libxlsh.h"
-#include "xlsh.h"
+#include <config.h>
+#include <libxlsh.h>
+#include <xlsh.h>
// Static data
static xlsh_config_item_t xlsh_config[] = {
@@ -199,7 +199,6 @@ int xlsh_session_showissue(const char* issuefile)
curptr += printf("%s", curptr);
} while(curptr < endptr);
- fputc('\n', stdout);
free(buffer);
return XLSH_EOK;
}
View
4 src/xlshd.c
@@ -16,8 +16,8 @@
#include <sys/stat.h>
#include <sys/wait.h>
-#include "config.h"
-#include "libxlsh.h"
+#include <config.h>
+#include <libxlsh.h>
static void xlshd_usage(const char* argv0)
{

0 comments on commit b8585e2

Please sign in to comment.
Something went wrong with that request. Please try again.