Permalink
Browse files

Fixing the Makefile.

  • Loading branch information...
1 parent 4f21289 commit 95ebd0540c3b96b6c57f0779012e327c756990d3 Torbjorn Tornkvist committed Jan 30, 2009
Showing with 15 additions and 4 deletions.
  1. +4 −0 .gitignore
  2. 0 ebin/.gitignore
  3. +11 −4 src/Makefile
View
@@ -0,0 +1,4 @@
+*.beam
+*.asn1db
+src/ELDAPv3.hrl
+src/ELDAPv3.erl
View
No changes.
View
@@ -1,19 +1,26 @@
-include ../../../support/include.mk
-ERLC_FLAGS += -I ../include
+ERLC = erlc
+EBIN_DIR = ../ebin
+ERLC_FLAGS += -I ./src +debug_info
+ERL_OBJECTS := ${EBIN_DIR}/eldap.beam ${EBIN_DIR}/ELDAPv3.beam
.SUFFIXES: .asn .erl .beam
+$(EBIN_DIR)/%.beam: %.erl
+ $(ERLC) $(ERLC_FLAGS) -o $(EBIN_DIR) $<
+.PHONY: all
all: asn $(ERL_OBJECTS)
+.PHONY: asn
asn: ELDAPv3.erl ../ebin/ELDAPv3.beam
ELDAPv3.erl: ELDAPv3.asn
${ERLC} ELDAPv3.asn
- $(ERLC) -o$(EBIN) ELDAPv3.erl
+ mv ELDAPv3.beam ${EBIN_DIR}
+.PHONY: clean
clean:
- -rm $(ERL_OBJECTS) ELDAPv3.erl ELDAPv3.beam ELDAPv3.asn1db ELDAPv3.hrl
+ -rm $(ERL_OBJECTS) ELDAPv3.erl ELDAPv3.asn1db ELDAPv3.hrl

0 comments on commit 95ebd05

Please sign in to comment.