Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[project @ Switch to more usual erlang project layout]

  • Loading branch information...
commit 02b126f6cf0966f637ef5eacacc6df256a6bca9d 1 parent 6df8498
@tonyg authored
View
31 serial-1.0/Makefile → Makefile
@@ -1,7 +1,6 @@
# File: Makefile
# Author: Johan Bevemyr
# Created: Fri Oct 18 09:59:34 1996
-
WARNING_OPTIONS =
LANGUAGE_OPTIONS =
@@ -11,37 +10,27 @@ CFLAGS = $(WARNING_OPTIONS) $(LANGUAGE_OPTIONS) $(COMPILER_OPTIONS)
######################################################################
-HEADER_FILES = serial.h
-SOURCE_FILES = serial.c
+HEADER_FILES = c_src/serial.h
+SOURCE_FILES = c_src/serial.c
OBJECT_FILES = $(SOURCE_FILES:.c=.o)
######################################################################
-ERL_FILES = $(wildcard *.erl)
-BEAM_FILES = $(patsubst %.erl, ../ebin/%.beam, $(ERL_FILES))
+ERL_FILES = $(wildcard src/*.erl)
+BEAM_FILES = $(patsubst src/%.erl, ebin/%.beam, $(ERL_FILES))
######################################################################
-all: ../priv/bin/serial $(BEAM_FILES)
+all: priv/bin/serial $(BEAM_FILES)
-../ebin/%.beam: %.erl
- erlc -o ../ebin $<
+ebin/%.beam: src/%.erl
+ erlc -o ebin $<
-../priv/bin/serial: serial
- cp serial ../priv/bin
-
-serial : $(OBJECT_FILES)
+priv/bin/serial: $(OBJECT_FILES)
$(CC) -o $@ $(LDFLAGS) $(OBJECT_FILES) $(LDLIBS)
-clean :
- /bin/rm -f serial ../priv/bin/serial $(OBJECT_FILES) $(BEAM_FILES)
+clean:
+ rm -f priv/bin/serial $(OBJECT_FILES) $(BEAM_FILES)
-# roland
serial.o: serial.c serial.h
-
-realclean: clean
- /bin/rm -f serial
-
-$(OBJECT_FILES): $(HEADER_FILE)
-
View
0  serial-1.0/serial.c → c_src/serial.c
File renamed without changes
View
0  serial-1.0/serial.h → c_src/serial.h
File renamed without changes
View
0  serial-1.0/serial.pub → serial.pub
File renamed without changes
View
0  serial-1.0/serial.erl → src/serial.erl
File renamed without changes
View
0  serial-1.0/serial.hrl → src/serial.hrl
File renamed without changes
View
0  serial-1.0/slip.erl → src/slip.erl
File renamed without changes
View
0  serial-1.0/terminal.erl → src/terminal.erl
File renamed without changes
Please sign in to comment.
Something went wrong with that request. Please try again.