jovanbulck / jsh

A basic UNIX shell implementation in C
GNU General Public License v3.0
30 stars 10 forks source link

compiling on ubuntu 14.04 #1

Closed KevinMordijck closed 9 years ago

KevinMordijck commented 9 years ago

solution and install libreadline6 and libreadline6-dev

all: jsh-common alias jsh link
    @echo "<<<< All done >>>>"

jsh-common: jsh-common.c jsh-common.h
    gcc -g -c jsh-common.c -o jsh-common.o
alias: alias.c alias.h jsh-common.h
    gcc -g -c alias.c -o alias.o
jsh: jsh-parse.c jsh.c jsh-common.h
    gcc -g -c jsh.c -o jsh.o
link: jsh-common.o jsh.o alias.o
    gcc -g jsh-common.o jsh.o alias.o -o jsh -l readline
jovanbulck commented 9 years ago

Done. Thx!

Makefile updated + platform specific info included in the the wiki page.